Module: Gemmy::Patches::ArrayPatch::InstanceMethods::After
- Defined in:
- lib/gemmy/patches/array_patch.rb
Instance Method Summary collapse
-
#after(value) ⇒ Object
facets.
Instance Method Details
#after(value) ⇒ Object
facets
33 34 35 36 |
# File 'lib/gemmy/patches/array_patch.rb', line 33 def after(value) return nil unless include? value self[(index(value).to_i + 1) % length] end |