Class: Orbacle::ConstantsTree::ScopeLevel
- Inherits:
-
Struct
- Object
- Struct
- Orbacle::ConstantsTree::ScopeLevel
- Defined in:
- lib/orbacle/constants_tree.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#elements ⇒ Object
Returns the value of attribute elements.
Class Method Summary collapse
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
5 6 7 |
# File 'lib/orbacle/constants_tree.rb', line 5 def children @children end |
#elements ⇒ Object
Returns the value of attribute elements
5 6 7 |
# File 'lib/orbacle/constants_tree.rb', line 5 def elements @elements end |
Class Method Details
.build_empty_hash ⇒ Object
10 11 12 |
# File 'lib/orbacle/constants_tree.rb', line 10 def self.build_empty_hash Hash.new {|h, k| h[k] = ScopeLevel.empty } end |
.empty ⇒ Object
6 7 8 |
# File 'lib/orbacle/constants_tree.rb', line 6 def self.empty new([], build_empty_hash) end |