Class: Predicated::TreetopUrlPart::OrNode

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/predicated/from/url_part.rb

Instance Method Summary collapse

Instance Method Details

#leftObject



85
# File 'lib/predicated/from/url_part.rb', line 85

def left; elements[0] end

#rightObject



86
# File 'lib/predicated/from/url_part.rb', line 86

def right; elements[2] end

#to_predicateObject



88
89
90
# File 'lib/predicated/from/url_part.rb', line 88

def to_predicate
  Or.new(left.to_predicate, right.to_predicate)
end