Sha256: 3fd2617336644512cf408d84a48f080154cff9c64432022a08ff27f177d797df

Contents?: true

Size: 147 Bytes

Versions: 5

Compression:

Stored size: 147 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

5 entries across 5 versions & 1 rubygems

Version Path
riak-client-2.4.1 lib/riak/core_ext/extract_options.rb
riak-client-2.4.0 lib/riak/core_ext/extract_options.rb
riak-client-2.4.0.pre1 lib/riak/core_ext/extract_options.rb
riak-client-2.3.2 lib/riak/core_ext/extract_options.rb
riak-client-2.3.1 lib/riak/core_ext/extract_options.rb