Class: REXML::CSSSelector::Queries::NestedQuery
- Inherits:
-
Object
- Object
- REXML::CSSSelector::Queries::NestedQuery
- Defined in:
- lib/rexml/css_selector/queries/nested_query.rb
Instance Method Summary collapse
- #call(node, context) ⇒ Object
-
#initialize(cont:, query:) ⇒ NestedQuery
constructor
A new instance of NestedQuery.
Constructor Details
#initialize(cont:, query:) ⇒ NestedQuery
Returns a new instance of NestedQuery.
7 8 9 10 |
# File 'lib/rexml/css_selector/queries/nested_query.rb', line 7 def initialize(cont:, query:) @cont = cont @query = query end |
Instance Method Details
#call(node, context) ⇒ Object
12 13 14 |
# File 'lib/rexml/css_selector/queries/nested_query.rb', line 12 def call(node, context) @query.call(node, context) && @cont.call(node, context) end |