Class: RPath::Content

Inherits:
Expression show all
Defined in:
lib/rpath/expressions.rb

Overview

Given a prior expression producing vertex V, evaluates to V’s content.

Instance Method Summary collapse

Methods inherited from Expression

#eval

Constructor Details

#initialize(prior) ⇒ Content

Returns a new instance of Content.

Parameters:

  • prior (Expression)

    An expression producing a vertex



315
316
317
# File 'lib/rpath/expressions.rb', line 315

def initialize(prior)
  @prior = prior
end

Instance Method Details

#to_sString

Returns:

  • (String)


320
321
322
# File 'lib/rpath/expressions.rb', line 320

def to_s
  "#{@prior}:content"
end