Class: RPath::Adjacent
- Inherits:
-
VertexArrayExpression
- Object
- Expression
- VertexArrayExpression
- RPath::Adjacent
- Defined in:
- lib/rpath/expressions.rb
Overview
Given a prior expression producing vertex V, evaluates to an array containing V’s adjacent vertices.
Instance Method Summary collapse
-
#initialize(prior) ⇒ Adjacent
constructor
A new instance of Adjacent.
- #to_s ⇒ String
Methods inherited from VertexArrayExpression
#[], #method_missing, #named, #where
Methods inherited from Expression
Constructor Details
#initialize(prior) ⇒ Adjacent
Returns a new instance of Adjacent.
163 164 165 166 |
# File 'lib/rpath/expressions.rb', line 163 def initialize(prior) super() @prior = prior end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class RPath::VertexArrayExpression
Instance Method Details
#to_s ⇒ String
169 170 171 |
# File 'lib/rpath/expressions.rb', line 169 def to_s "#{@prior}." end |