Class: RPath::Named
- Inherits:
-
VertexArrayExpression
- Object
- Expression
- VertexArrayExpression
- RPath::Named
- Defined in:
- lib/rpath/expressions.rb
Overview
Given a prior expression producing vertex array A, evaluates to an array containing the vertices in A with a certain name.
Instance Method Summary collapse
-
#initialize(prior, name) ⇒ Named
constructor
A new instance of Named.
- #to_s ⇒ String
Methods inherited from VertexArrayExpression
#[], #method_missing, #named, #where
Methods inherited from Expression
Constructor Details
#initialize(prior, name) ⇒ Named
Returns a new instance of Named.
188 189 190 191 192 |
# File 'lib/rpath/expressions.rb', line 188 def initialize(prior, name) super() @prior = prior @name = name 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
195 196 197 |
# File 'lib/rpath/expressions.rb', line 195 def to_s "#{@prior}#{@name}" end |