Class: ActiveFedora::Orders::OrderedList::TailSentinel

Inherits:
Sentinel
  • Object
show all
Defined in:
lib/active_fedora/orders/ordered_list.rb

Instance Attribute Summary

Attributes inherited from Sentinel

#next, #parent, #prev

Instance Method Summary collapse

Methods inherited from Sentinel

#nil?, #rdf_subject

Constructor Details

#initialize(*args, **kwargs) ⇒ TailSentinel

Returns a new instance of TailSentinel.



255
256
257
258
# File 'lib/active_fedora/orders/ordered_list.rb', line 255

def initialize(*args, **kwargs)
  super
  prev.next = self if prev && prev.next != self
end