Sha256: fb8f09f0c999f8a1aae984adf425faa2e5aa90ac1613e6ec2cda60aa4e2450e8
Contents?: true
Size: 235 Bytes
Versions: 2
Compression:
Stored size: 235 Bytes
Contents
module Rips module Utils module ArrayExtension # Binary search or standard search depends version def search(&block) RUBY_VERSION >= "2" ? self.bsearch(&block) : self.find(&block) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rips-0.1.1 | lib/rips/utils/array.rb |
rips-0.1.0 | lib/rips/utils/array.rb |