Method: ActiveObject::Array#after
- Defined in:
- lib/active_object/array.rb
#after(value) ⇒ Object
6 7 8 9 10 |
# File 'lib/active_object/array.rb', line 6 def after(value) return unless include?(value) self[(index(value).to_i + 1) % length] end |