Class: PMP::Links
- Inherits:
-
HashWithIndifferentAccess
- Object
- HashWithIndifferentAccess
- PMP::Links
- Includes:
- Utils
- Defined in:
- lib/pmp/links.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
- #[]=(k, link) ⇒ Object
-
#initialize(parent) ⇒ Links
constructor
A new instance of Links.
Methods included from Utils
#to_json_key_name, #to_ruby_safe_name
Constructor Details
#initialize(parent) ⇒ Links
Returns a new instance of Links.
10 11 12 13 |
# File 'lib/pmp/links.rb', line 10 def initialize(parent) super() self.parent = parent end |
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
8 9 10 |
# File 'lib/pmp/links.rb', line 8 def parent @parent end |
Instance Method Details
#[]=(k, link) ⇒ Object
15 16 17 18 |
# File 'lib/pmp/links.rb', line 15 def []=(k, link) super parent.send("#{to_ruby_safe_name(k)}=", link) end |