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.



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

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.



240
241
242
# File 'lib/active_fedora/orders/ordered_list.rb', line 240

def next
  @next
end

#parentObject (readonly)

Returns the value of attribute parent.



232
233
234
# File 'lib/active_fedora/orders/ordered_list.rb', line 232

def parent
  @parent
end

#prevObject

Returns the value of attribute prev.



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

def prev
  @prev
end

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)


244
245
246
# File 'lib/active_fedora/orders/ordered_list.rb', line 244

def nil?
  true
end

#rdf_subjectObject



248
249
250
# File 'lib/active_fedora/orders/ordered_list.rb', line 248

def rdf_subject
  nil
end