Module: Bridgetown::Builders::DSL::Inspectors::QuerySelection

Defined in:
bridgetown-builder/lib/bridgetown-builder/dsl/inspectors.rb

Overview

Add a couple familar DOM API features

Instance Method Summary collapse

Instance Method Details

#query_selector(selector) ⇒ Object



9
10
11
# File 'bridgetown-builder/lib/bridgetown-builder/dsl/inspectors.rb', line 9

def query_selector(selector)
  at_css(selector)
end

#query_selector_all(selector) ⇒ Object



13
14
15
# File 'bridgetown-builder/lib/bridgetown-builder/dsl/inspectors.rb', line 13

def query_selector_all(selector)
  css(selector)
end