Class: XPath::Union
Instance Attribute Summary collapse
-
#expressions ⇒ Object
(also: #arguments)
readonly
Returns the value of attribute expressions.
Instance Method Summary collapse
- #each(&block) ⇒ Object
- #expression ⇒ Object
-
#initialize(*expressions) ⇒ Union
constructor
A new instance of Union.
- #method_missing(*args) ⇒ Object
- #to_xpath(type = nil) ⇒ Object (also: #to_s)
Constructor Details
#initialize(*expressions) ⇒ Union
Returns a new instance of Union.
8 9 10 |
# File 'lib/xpath/union.rb', line 8 def initialize(*expressions) @expressions = expressions end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Attribute Details
#expressions ⇒ Object (readonly) Also known as: arguments
Returns the value of attribute expressions.
5 6 7 |
# File 'lib/xpath/union.rb', line 5 def expressions @expressions end |
Instance Method Details
#each(&block) ⇒ Object
16 17 18 |
# File 'lib/xpath/union.rb', line 16 def each(&block) arguments.each(&block) end |
#expression ⇒ Object
12 13 14 |
# File 'lib/xpath/union.rb', line 12 def expression :union end |