module Gemmy::Patches::ArrayPatch::InstanceMethods::Before
Public Class Methods
autotest()
click to toggle source
# File lib/gemmy/patches/array_patch.rb, line 112 def self.autotest [1,2].before(2) == 1 end
Public Instance Methods
before(value)
click to toggle source
facets
# File lib/gemmy/patches/array_patch.rb, line 108 def before(value) return nil unless include? value self[(index(value).to_i - 1) % length] end