Class: JPath::Parser::Union
- Inherits:
-
Object
- Object
- JPath::Parser::Union
- Defined in:
- lib/jpath/parser/path.rb
Instance Method Summary collapse
-
#initialize(*paths) ⇒ Union
constructor
A new instance of Union.
- #to_s ⇒ Object
Constructor Details
#initialize(*paths) ⇒ Union
Returns a new instance of Union.
5 6 7 |
# File 'lib/jpath/parser/path.rb', line 5 def initialize(*paths) @paths = paths end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/jpath/parser/path.rb', line 9 def to_s @paths.map(&:to_s).join("|") end |