Class: ActiveFedora::Orders::OrderedList::Sentinel
- Inherits:
-
Object
- Object
- ActiveFedora::Orders::OrderedList::Sentinel
- Defined in:
- lib/active_fedora/orders/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.
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
#next ⇒ Object
Returns the value of attribute next.
234 235 236 |
# File 'lib/active_fedora/orders/ordered_list.rb', line 234 def next @next end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
226 227 228 |
# File 'lib/active_fedora/orders/ordered_list.rb', line 226 def parent @parent end |
#prev ⇒ Object
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
238 239 240 |
# File 'lib/active_fedora/orders/ordered_list.rb', line 238 def nil? true end |
#rdf_subject ⇒ Object
242 243 244 |
# File 'lib/active_fedora/orders/ordered_list.rb', line 242 def rdf_subject nil end |