Class: RPath::Content
- Inherits:
-
Expression
- Object
- Expression
- RPath::Content
- Defined in:
- lib/rpath/expressions.rb
Overview
Given a prior expression producing vertex V, evaluates to V’s content.
Instance Method Summary collapse
-
#initialize(prior) ⇒ Content
constructor
A new instance of Content.
- #to_s ⇒ String
Methods inherited from Expression
Constructor Details
#initialize(prior) ⇒ Content
Returns a new instance of Content.
315 316 317 |
# File 'lib/rpath/expressions.rb', line 315 def initialize(prior) @prior = prior end |
Instance Method Details
#to_s ⇒ String
320 321 322 |
# File 'lib/rpath/expressions.rb', line 320 def to_s "#{@prior}:content" end |