module Gemmy::Patches::ArrayPatch::InstanceMethods::After

Public Class Methods

autotest() click to toggle source
# File lib/gemmy/patches/array_patch.rb, line 101
def self.autotest
  [1,2].after(1).eql?(2)
end

Public Instance Methods

after(value) click to toggle source

facets

# 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