Module: Rumai::Chain
Overview
Note:
Inheritors must override the #chain method.
Instance Method Summary collapse
-
#chain ⇒ Object
Returns an array of objects related to this one.
-
#next ⇒ Object
Returns the object after this one in the chain.
-
#prev ⇒ Object
Returns the object before this one in the chain.
Instance Method Details
#chain ⇒ Object
Returns an array of objects related to this one.
31 32 33 |
# File 'lib/rumai/wm.rb', line 31 def chain [self] end |
#next ⇒ Object
Returns the object after this one in the chain.
38 39 40 |
# File 'lib/rumai/wm.rb', line 38 def next sibling(+1) end |
#prev ⇒ Object
Returns the object before this one in the chain.
45 46 47 |
# File 'lib/rumai/wm.rb', line 45 def prev sibling(-1) end |