Sha256: f26fa314f92415a4dd72d25eb2d8453aad411ca421c348b070b9ebaf6cc6bdfe

Contents?: true

Size: 140 Bytes

Versions: 51

Compression:

Stored size: 140 Bytes

Contents

unless Array.new.respond_to? :extract_options!
  class Array
    def extract_options!
      last.is_a?(::Hash) ? pop : {}
    end
  end
end

Version data entries

51 entries across 41 versions & 4 rubygems

Version Path
riak-client-2.6.0 lib/riak/core_ext/extract_options.rb
riak-client-2.5.0 lib/riak/core_ext/extract_options.rb
riak-client-2.3.0 lib/riak/core_ext/extract_options.rb
riak-client-2.2.2 lib/riak/core_ext/extract_options.rb
riak-client-2.2.1 lib/riak/core_ext/extract_options.rb
riak-client-noenc-1.0.0 lib/riak/core_ext/extract_options.rb
riak-client-2.2.0 lib/riak/core_ext/extract_options.rb
riak-client-2.2.0.pre1 lib/riak/core_ext/extract_options.rb
riak-client-2.1.0 lib/riak/core_ext/extract_options.rb
riak-client-1.4.5 lib/riak/core_ext/extract_options.rb
riak-client-2.0.0 lib/riak/core_ext/extract_options.rb
riak-client-2.0.0.rc2 lib/riak/core_ext/extract_options.rb
riak-client-2.0.0.rc1 lib/riak/core_ext/extract_options.rb
riak-client-1.4.4.1 lib/riak/core_ext/extract_options.rb
riak-client-1.4.4 lib/riak/core_ext/extract_options.rb
riak-client-1.4.3 lib/riak/core_ext/extract_options.rb
riak-client-1.4.2 lib/riak/core_ext/extract_options.rb
riak-client-1.4.1 lib/riak/core_ext/extract_options.rb
riak-client-1.4.0 lib/riak/core_ext/extract_options.rb
riak-client-1.2.0 lib/riak/core_ext/extract_options.rb