Class: RLSL::Prism::IR::Constant
- Defined in:
- lib/rlsl/prism/ir/expressions.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(name, type = :float) ⇒ Constant
constructor
A new instance of Constant.
Methods inherited from Node
Constructor Details
#initialize(name, type = :float) ⇒ Constant
Returns a new instance of Constant.
152 153 154 155 156 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 152 def initialize(name, type = :float) super() @name = name @type = type end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
148 149 150 |
# File 'lib/rlsl/prism/ir/expressions.rb', line 148 def name @name end |