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) ⇒ TailSentinel

Returns a new instance of TailSentinel.



261
262
263
264
# File 'lib/active_fedora/orders/ordered_list.rb', line 261

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