Class: Valkyrie::Persistence::Fedora::OrderedList::Sentinel
- Inherits:
-
Object
- Object
- Valkyrie::Persistence::Fedora::OrderedList::Sentinel
- Defined in:
- lib/valkyrie/persistence/fedora/ordered_list.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#next ⇒ Object
Returns the value of attribute next.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#prev ⇒ Object
Returns the value of attribute prev.
Instance Method Summary collapse
-
#initialize(parent, next_node: nil, prev_node: nil) ⇒ Sentinel
constructor
A new instance of Sentinel.
- #nil? ⇒ Boolean
- #rdf_subject ⇒ Object
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
#next ⇒ Object
Returns the value of attribute next.
119 120 121 |
# File 'lib/valkyrie/persistence/fedora/ordered_list.rb', line 119 def next @next end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
111 112 113 |
# File 'lib/valkyrie/persistence/fedora/ordered_list.rb', line 111 def parent @parent end |
#prev ⇒ Object
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
123 124 125 |
# File 'lib/valkyrie/persistence/fedora/ordered_list.rb', line 123 def nil? true end |
#rdf_subject ⇒ Object
127 128 129 |
# File 'lib/valkyrie/persistence/fedora/ordered_list.rb', line 127 def rdf_subject nil end |