Class: JPath::Parser::Union

Inherits:
Object
  • Object
show all
Defined in:
lib/jpath/parser/path.rb

Instance Method Summary collapse

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_sObject



9
10
11
# File 'lib/jpath/parser/path.rb', line 9

def to_s
  @paths.map(&:to_s).join("|")
end