Class: Valkyrie::Persistence::Fedora::OrderedList::Sentinel

Inherits:
Object
  • Object
show all
Defined in:
lib/valkyrie/persistence/fedora/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.



113
114
115
116
117
# File 'lib/valkyrie/persistence/fedora/ordered_list.rb', line 113

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.



119
120
121
# File 'lib/valkyrie/persistence/fedora/ordered_list.rb', line 119

def next
  @next
end

#parentObject (readonly)

Returns the value of attribute parent.



111
112
113
# File 'lib/valkyrie/persistence/fedora/ordered_list.rb', line 111

def parent
  @parent
end

#prevObject

Returns the value of attribute prev.



121
122
123
# File 'lib/valkyrie/persistence/fedora/ordered_list.rb', line 121

def prev
  @prev
end

Instance Method Details

#nil?Boolean

Returns:

  • (Boolean)


123
124
125
# File 'lib/valkyrie/persistence/fedora/ordered_list.rb', line 123

def nil?
  true
end

#rdf_subjectObject



127
128
129
# File 'lib/valkyrie/persistence/fedora/ordered_list.rb', line 127

def rdf_subject
  nil
end