Sha256: c08cfd2c8bb4b4fd431ec51e9bc8f084f0f6c0e9087321233e0d1454cca38cd9
Contents?: true
Size: 365 Bytes
Versions: 4
Compression:
Stored size: 365 Bytes
Contents
class Array if RUBY_VERSION < '1.9' alias_method :_facets_index, :index # Allows #index to accept a block. # # OVERRIDE! This is one of the bery few core # overrides in Facets. # def index(obj=nil, &block) if block_given? _facets_index(find(&block)) else _facets_index(obj) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
facets-2.6.0 | lib/core/facets/array/index.rb |
facets-2.5.0 | lib/core/facets/array/index.rb |
facets-2.5.1 | lib/core/facets/array/index.rb |
facets-2.5.2 | lib/core/facets/array/index.rb |