Class: Languages::BasicStructure
- Defined in:
- lib/kuniri/language/container_data/structured_and_oo/basic_structure.rb
Overview
Class responsible to be an abstraction for conditional and repetition data.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#expression ⇒ Object
Returns the value of attribute expression.
-
#level ⇒ Object
Returns the value of attribute level.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from BasicData
Instance Method Summary collapse
-
#initialize ⇒ BasicStructure
constructor
A new instance of BasicStructure.
Constructor Details
#initialize ⇒ BasicStructure
Returns a new instance of BasicStructure.
14 15 16 17 18 |
# File 'lib/kuniri/language/container_data/structured_and_oo/basic_structure.rb', line 14 def initialize @type = "none" @expression = "empty" @level = 0 end |
Instance Attribute Details
#expression ⇒ Object
Returns the value of attribute expression.
11 12 13 |
# File 'lib/kuniri/language/container_data/structured_and_oo/basic_structure.rb', line 11 def expression @expression end |
#level ⇒ Object
Returns the value of attribute level.
12 13 14 |
# File 'lib/kuniri/language/container_data/structured_and_oo/basic_structure.rb', line 12 def level @level end |
#type ⇒ Object
Returns the value of attribute type.
10 11 12 |
# File 'lib/kuniri/language/container_data/structured_and_oo/basic_structure.rb', line 10 def type @type end |