Sha256: 4caf281fe548fbfe7e9b74980bde8dd2d60a4faef674bdb14a25b3bf9f9dd747

Contents?: true

Size: 109 Bytes

Versions: 8

Compression:

Stored size: 109 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
vertebrae-0.8.0 lib/core_ext/array.rb
vertebrae-1.0.5 lib/core_ext/array.rb
vertebrae-1.0.4 lib/core_ext/array.rb
vertebrae-1.0.2 lib/core_ext/array.rb
vertebrae-1.0.1 lib/core_ext/array.rb
vertebrae-1.0.0 lib/core_ext/array.rb
vertebrae-0.7.0 lib/core_ext/array.rb
vertebrae-0.6.2 lib/core_ext/array.rb