Class: Predicated::TreetopUrlPart::AndNode

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

Instance Method Summary collapse

Instance Method Details

#leftObject



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

def left; elements[0] end

#rightObject



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

def right; elements[2] end

#to_predicateObject



79
80
81
# File 'lib/predicated/from/url_part.rb', line 79

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