Class: ActiveFedora::Orders::OrderedList::Sentinel

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

Direct Known Subclasses

HeadSentinel, TailSentinel

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent, next_node: nil, prev_node: nil) ⇒ Sentinel

Returns a new instance of Sentinel.



228
229
230
231
232
# File 'lib/active_fedora/orders/ordered_list.rb', line 228

def initialize(parent, next_node: nil, prev_node: nil)
  @parent = parent
  @next = next_node
  @prev = prev_node
end

Instance Attribute Details

#nextObject

Returns the value of attribute next.



234
235
236
# File 'lib/active_fedora/orders/ordered_list.rb', line 234

def next
  @next
end

#parentObject (readonly)

Returns the value of attribute parent.



226
227
228
# File 'lib/active_fedora/orders/ordered_list.rb', line 226

def parent
  @parent
end

#prevObject

Returns the value of attribute prev.



236
237
238
# File 'lib/active_fedora/orders/ordered_list.rb', line 236

def prev
  @prev
end

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)


238
239
240
# File 'lib/active_fedora/orders/ordered_list.rb', line 238

def nil?
  true
end

#rdf_subjectObject



242
243
244
# File 'lib/active_fedora/orders/ordered_list.rb', line 242

def rdf_subject
  nil
end