Class: Ec2Metadata::Revision
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(path) ⇒ Revision
constructor
A new instance of Revision.
- #is_struct?(child_key) ⇒ Boolean
- #new_child(child_key) ⇒ Object
Methods inherited from Base
#child_keys, #children, #default_child, #from_hash, #get, #is_child_key?, #to_hash
Constructor Details
#initialize(path) ⇒ Revision
Returns a new instance of Revision.
5 6 7 8 |
# File 'lib/ec2_metadata/revision.rb', line 5 def initialize(path) @path = path @default_child_key = 'meta-data' end |
Instance Method Details
#is_struct?(child_key) ⇒ Boolean
18 19 20 |
# File 'lib/ec2_metadata/revision.rb', line 18 def is_struct?(child_key) child_key =~ /^meta-data\/?$/ end |