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.
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
#next ⇒ Object
Returns the value of attribute next.
240 241 242 |
# File 'lib/active_fedora/orders/ordered_list.rb', line 240 def next @next end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
232 233 234 |
# File 'lib/active_fedora/orders/ordered_list.rb', line 232 def parent @parent end |
#prev ⇒ Object
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
244 245 246 |
# File 'lib/active_fedora/orders/ordered_list.rb', line 244 def nil? true end |
#rdf_subject ⇒ Object
248 249 250 |
# File 'lib/active_fedora/orders/ordered_list.rb', line 248 def rdf_subject nil end |