Module: Gemmy::Patches::ArrayPatch::InstanceMethods::After
- Defined in:
- lib/gemmy/patches/array_patch.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#after(value) ⇒ Object
facets.
Class Method Details
.autotest ⇒ Object
101 102 103 |
# File 'lib/gemmy/patches/array_patch.rb', line 101 def self.autotest [1,2].after(1).eql?(2) end |
Instance Method Details
#after(value) ⇒ Object
facets
97 98 99 100 |
# File 'lib/gemmy/patches/array_patch.rb', line 97 def after(value) return nil unless include? value self[(index(value).to_i + 1) % length] end |