Sha256: 5e9587045f7418cd5e9f4cd46626f452fb331c13ab396714948b7107dff9b15c

Contents?: true

Size: 122 Bytes

Versions: 3

Compression:

Stored size: 122 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zebra_printer-0.9.0 lib/utils/array.rb
zebra_printer-0.8.0 lib/utils/array.rb
zebra_printer-0.1.1 lib/utils/array.rb