Class: Mexico::FileSystem::ItemLinksProxy

Inherits:
Array
  • Object
show all
Defined in:
lib/mexico/file_system/item_links_proxy.rb

Instance Method Summary collapse

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