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.1.1 lib/riak/core_ext/extract_options.rb
riak-client-1.1.0 lib/riak/core_ext/extract_options.rb
better-riak-client-1.0.7 lib/riak/core_ext/extract_options.rb
better-riak-client-1.0.6 lib/riak/core_ext/extract_options.rb
riak-client-1.0.5 lib/riak/core_ext/extract_options.rb
better-riak-client-1.0.5 lib/riak/core_ext/extract_options.rb
riak-client-1.0.3 pkg/riak-client-1.0.1/pkg/riak-client-1.0.0/lib/riak/core_ext/extract_options.rb
riak-client-1.0.3 pkg/riak-client-1.0.1/lib/riak/core_ext/extract_options.rb
riak-client-1.0.3 pkg/riak-client-1.0.0/lib/riak/core_ext/extract_options.rb
riak-client-1.0.3 lib/riak/core_ext/extract_options.rb
riak-client-1.0.3 pkg/riak-client-1.0.2/pkg/riak-client-1.0.1/pkg/riak-client-1.0.0/lib/riak/core_ext/extract_options.rb
riak-client-1.0.3 pkg/riak-client-1.0.2/pkg/riak-client-1.0.0/lib/riak/core_ext/extract_options.rb
riak-client-1.0.3 pkg/riak-client-1.0.2/lib/riak/core_ext/extract_options.rb
riak-client-1.0.3 pkg/riak-client-1.0.2/pkg/riak-client-1.0.1/lib/riak/core_ext/extract_options.rb
riak-client-1.0.2 pkg/riak-client-1.0.0/lib/riak/core_ext/extract_options.rb
riak-client-1.0.2 lib/riak/core_ext/extract_options.rb
riak-client-1.0.2 pkg/riak-client-1.0.1/pkg/riak-client-1.0.0/lib/riak/core_ext/extract_options.rb
riak-client-1.0.2 pkg/riak-client-1.0.1/lib/riak/core_ext/extract_options.rb
riak-client-1.0.0 lib/riak/core_ext/extract_options.rb
seomoz-riak-client-1.0.0.pre lib/riak/core_ext/extract_options.rb