Class: Csquery::Structured::Builder
- Inherits:
-
ExpressionBuilder
- Object
- ExpressionBuilder
- Csquery::Structured::Builder
- Defined in:
- lib/csquery/structured/builder.rb
Instance Attribute Summary collapse
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Attributes inherited from ExpressionBuilder
Instance Method Summary collapse
-
#initialize(root, &block) ⇒ Builder
constructor
A new instance of Builder.
- #query ⇒ Object
Methods inherited from ExpressionBuilder
Constructor Details
#initialize(root, &block) ⇒ Builder
Returns a new instance of Builder.
6 7 8 9 |
# File 'lib/csquery/structured/builder.rb', line 6 def initialize(root, &block) @root = root super(&block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Csquery::Structured::ExpressionBuilder
Instance Attribute Details
#root ⇒ Object (readonly)
Returns the value of attribute root.
4 5 6 |
# File 'lib/csquery/structured/builder.rb', line 4 def root @root end |
Instance Method Details
#query ⇒ Object
11 12 13 |
# File 'lib/csquery/structured/builder.rb', line 11 def query Structured.public_send(root, *expressions).query end |