# File lib/core/facets/array/before.rb, line 16 def before(value) return nil unless include? value self[(index(value).to_i - 1) % length] end