Class: Pione::Lang::OutputDeclaration

Inherits:
Declaration
  • Object
show all
Defined in:
lib/pione/lang/declaration.rb

Overview

OutputDeclaration is a declaration for output condition sentences.

Instance Method Summary collapse

Methods inherited from Declaration

#eval!, inherited

Methods included from Util::Positionable

#line_and_column, #pos, #set_source_position

Instance Method Details

#eval(env) ⇒ Object

Append the output condition to the current definition.



221
222
223
# File 'lib/pione/lang/declaration.rb', line 221

def eval(env)
  env.current_definition.outputs << expr
end