Sha256: 379f810f3c9fbe8fa42c71d3fcfaec1cd0a065163cda09071f9dcee1422465b7

Contents?: true

Size: 173 Bytes

Versions: 4

Compression:

Stored size: 173 Bytes

Contents

class Array
  def extract_options!
    if last.is_a?(Hash) && last.instance_of?(Hash)
      pop
    else
      {}
    end
  end unless [].respond_to?(:extract_options!)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
contactology-1.0.0 lib/contactology/core_ext/array.rb
contactology-0.1.2 lib/contactology/core_ext/array.rb
contactology-0.1.1 lib/contactology/core_ext/array.rb
contactology-0.1.0 lib/contactology/core_ext/array.rb