Class: ActiveFedora::Aggregation::LinkInserter::Appender
- Inherits:
-
Object
- Object
- ActiveFedora::Aggregation::LinkInserter::Appender
- Defined in:
- lib/active_fedora/aggregation/link_inserter.rb
Instance Attribute Summary collapse
-
#proxy ⇒ Object
readonly
Returns the value of attribute proxy.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(root, proxy) ⇒ Appender
constructor
A new instance of Appender.
Constructor Details
Instance Attribute Details
#proxy ⇒ Object (readonly)
Returns the value of attribute proxy.
37 38 39 |
# File 'lib/active_fedora/aggregation/link_inserter.rb', line 37 def proxy @proxy end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
37 38 39 |
# File 'lib/active_fedora/aggregation/link_inserter.rb', line 37 def root @root end |
Instance Method Details
#call ⇒ Object
43 44 45 46 47 |
# File 'lib/active_fedora/aggregation/link_inserter.rb', line 43 def call last_proxy.next = proxy proxy.prev = last_proxy root.tail = proxy end |