Method: Janeway::AST::Expression#initialize
- Defined in:
- lib/janeway/ast/expression.rb
#initialize(val = nil) ⇒ Expression
Returns a new instance of Expression.
22 23 24 25 26 |
# File 'lib/janeway/ast/expression.rb', line 22 def initialize(val = nil) # don't set the instance variable if unused, because it makes the # "#inspect" output cleaner in rspec test failures @value = val unless val.nil? # literal false must be stored though! end |