Module: Gemmy::Patches::ArrayPatch::InstanceMethods::Before
- Defined in:
- lib/gemmy/patches/array_patch.rb
Instance Method Summary collapse
-
#before(value) ⇒ Object
facets.
Instance Method Details
#before(value) ⇒ Object
facets
41 42 43 44 |
# File 'lib/gemmy/patches/array_patch.rb', line 41 def before(value) return nil unless include? value self[(index(value).to_i - 1) % length] end |