Class: RubyRTL::When

Inherits:
Ast
  • Object
show all
Defined in:
lib/ruby_rtl/ast.rb

Instance Attribute Summary collapse

Attributes inherited from Ast

#comments

Instance Method Summary collapse

Methods inherited from Ast

#accept

Constructor Details

#initialize(value, body) ⇒ When

Returns a new instance of When.



178
179
180
# File 'lib/ruby_rtl/ast.rb', line 178

def initialize value,body
  @value,@body=value,body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



177
178
179
# File 'lib/ruby_rtl/ast.rb', line 177

def body
  @body
end

#valueObject

Returns the value of attribute value.



177
178
179
# File 'lib/ruby_rtl/ast.rb', line 177

def value
  @value
end