Class: LeapCli::Config::Tag
- Defined in:
- lib/leap_cli/config/tag.rb
Instance Attribute Summary collapse
-
#node_list ⇒ Object
readonly
Returns the value of attribute node_list.
Attributes inherited from Object
Instance Method Summary collapse
-
#initialize(manager = nil) ⇒ Tag
constructor
A new instance of Tag.
-
#initialize_copy(orig) ⇒ Object
don’t copy the node list pointer when this object is dup’ed.
Methods inherited from Object
#[], #deep_merge!, #default, #dump_json, #dump_yaml, #environment, #environment=, #eval_file, #evaluate, #get, #get!, #hkey, #inherit_from!, #key, #manager, #method_missing, #pick
Methods inherited from Hash
#deep_dup, #deep_merge, #deep_merge!, #pick
Constructor Details
#initialize(manager = nil) ⇒ Tag
Returns a new instance of Tag.
12 13 14 15 |
# File 'lib/leap_cli/config/tag.rb', line 12 def initialize(manager=nil) super(manager) @node_list = Config::ObjectList.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class LeapCli::Config::Object
Instance Attribute Details
#node_list ⇒ Object (readonly)
Returns the value of attribute node_list.
10 11 12 |
# File 'lib/leap_cli/config/tag.rb', line 10 def node_list @node_list end |
Instance Method Details
#initialize_copy(orig) ⇒ Object
don’t copy the node list pointer when this object is dup’ed.
18 19 20 21 |
# File 'lib/leap_cli/config/tag.rb', line 18 def initialize_copy(orig) super @node_list = Config::ObjectList.new end |