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-1.0.0.beta lib/riak/core_ext/extract_options.rb
riak-client-0.9.8 lib/riak/core_ext/extract_options.rb
riak-client-0.9.5 lib/riak/core_ext/extract_options.rb
riak-client-0.9.4 lib/riak/core_ext/extract_options.rb
riak-client-0.9.3 lib/riak/core_ext/extract_options.rb
riak-client-0.9.2 lib/riak/core_ext/extract_options.rb
riak-client-0.9.1 lib/riak/core_ext/extract_options.rb
riak-client-0.9.0 lib/riak/core_ext/extract_options.rb
riak-client-0.9.0.beta2 lib/riak/core_ext/extract_options.rb
riak-client-0.9.0.beta lib/riak/core_ext/extract_options.rb
riak-client-0.8.3 lib/riak/core_ext/extract_options.rb