Sha256: 0f840191ece7a864bb22437051bc88ee8f01cb1ff06b77b4d1d7ac027f8cccdf

Contents?: true

Size: 139 Bytes

Versions: 4

Compression:

Stored size: 139 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
any_view-0.2.3 ./lib/any_view/core_ext/array.rb
any_view-0.2.2 ./lib/any_view/core_ext/array.rb
any_view-0.2.0 /Users/dneighman/Projects/any_view/lib/any_view/core_ext/array.rb
any_view-0.1.0 lib/any_view/core_ext/array.rb