Class: Languages::VariableGlobalData
- Defined in:
- lib/kuniri/language/container_data/structured_and_oo/variable_global_data.rb
Overview
Class responsible for handling global variables.
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from BasicData
Instance Method Summary collapse
-
#initialize(pName) ⇒ VariableGlobalData
constructor
A new instance of VariableGlobalData.
Constructor Details
#initialize(pName) ⇒ VariableGlobalData
Returns a new instance of VariableGlobalData.
13 14 15 16 17 18 |
# File 'lib/kuniri/language/container_data/structured_and_oo/variable_global_data.rb', line 13 def initialize(pName) return nil if pName.nil? or !pName.is_a? String @name = pName @visibility = "global" end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
11 12 13 |
# File 'lib/kuniri/language/container_data/structured_and_oo/variable_global_data.rb', line 11 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
10 11 12 |
# File 'lib/kuniri/language/container_data/structured_and_oo/variable_global_data.rb', line 10 def value @value end |