Class: RubyRTL::Literal
Overview
literals ===
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
-
#val ⇒ Object
Returns the value of attribute val.
Attributes inherited from Ast
Instance Method Summary collapse
-
#initialize(val, type = nil) ⇒ Literal
constructor
A new instance of Literal.
Methods inherited from Ast
Constructor Details
#initialize(val, type = nil) ⇒ Literal
Returns a new instance of Literal.
211 212 213 |
# File 'lib/ruby_rtl/ast.rb', line 211 def initialize val,type=nil @val,@type=val,type end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
209 210 211 |
# File 'lib/ruby_rtl/ast.rb', line 209 def type @type end |
#val ⇒ Object
Returns the value of attribute val.
208 209 210 |
# File 'lib/ruby_rtl/ast.rb', line 208 def val @val end |