Module: Rumai::Chain

Included in:
Area, Client, View
Defined in:
lib/rumai/wm.rb

Overview

Note:

Inheritors must override the #chain method.

Instance Method Summary collapse

Instance Method Details

#chainObject

Returns an array of objects related to this one.



31
32
33
# File 'lib/rumai/wm.rb', line 31

def chain
  [self]
end

#nextObject

Returns the object after this one in the chain.



38
39
40
# File 'lib/rumai/wm.rb', line 38

def next
  sibling(+1)
end

#prevObject

Returns the object before this one in the chain.



45
46
47
# File 'lib/rumai/wm.rb', line 45

def prev
  sibling(-1)
end