Class: CodeTools::AST::DynamicString

Inherits:
StringLiteral show all
Defined in:
lib/rubinius/code/compiler/evaluator.rb

Direct Known Subclasses

DynamicExecuteString, DynamicRegex

Instance Method Summary collapse

Instance Method Details

#execute(e) ⇒ Object



125
126
127
128
129
130
131
132
# File 'lib/rubinius/code/compiler/evaluator.rb', line 125

def execute(e)
  str = @string.dup
  @body.each do |x|
    str << x.execute(e)
  end

  str
end