Class: Pione::Lang::ConstraintDeclaration

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

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



237
238
239
# File 'lib/pione/lang/declaration.rb', line 237

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