Class: TyranoDsl::Elements::Variable
- Inherits:
-
Object
- Object
- TyranoDsl::Elements::Variable
- Defined in:
- lib/tyrano_dsl/elements/variable.rb
Overview
A label
Instance Attribute Summary collapse
- #initial_value ⇒ Integer readonly
- #name ⇒ String readonly
- #target_name ⇒ String readonly
Instance Method Summary collapse
-
#initialize(name, target_name, initial_value) ⇒ Variable
constructor
A new instance of Variable.
Constructor Details
#initialize(name, target_name, initial_value) ⇒ Variable
Returns a new instance of Variable.
16 17 18 19 20 |
# File 'lib/tyrano_dsl/elements/variable.rb', line 16 def initialize(name, target_name, initial_value) @name = name @target_name = target_name @initial_value = initial_value end |
Instance Attribute Details
#initial_value ⇒ Integer (readonly)
11 12 13 |
# File 'lib/tyrano_dsl/elements/variable.rb', line 11 def initial_value @initial_value end |
#name ⇒ String (readonly)
7 8 9 |
# File 'lib/tyrano_dsl/elements/variable.rb', line 7 def name @name end |
#target_name ⇒ String (readonly)
9 10 11 |
# File 'lib/tyrano_dsl/elements/variable.rb', line 9 def target_name @target_name end |