Class: Mexico::FileSystem::ItemLinksProxy
- Inherits:
-
Array
- Object
- Array
- Mexico::FileSystem::ItemLinksProxy
- Defined in:
- lib/mexico/file_system/item_links_proxy.rb
Instance Method Summary collapse
- #<<(item_link) ⇒ Object
-
#initialize(parent_item) ⇒ ItemLinksProxy
constructor
A new instance of ItemLinksProxy.
Constructor Details
#initialize(parent_item) ⇒ ItemLinksProxy
Returns a new instance of ItemLinksProxy.
5 6 7 |
# File 'lib/mexico/file_system/item_links_proxy.rb', line 5 def initialize(parent_item) @item = parent_item end |
Instance Method Details
#<<(item_link) ⇒ Object
9 10 11 |
# File 'lib/mexico/file_system/item_links_proxy.rb', line 9 def <<(item_link) @item.add_item_link(item_link) end |