Sha256: 425067f06322d844df27c22b7f2df5c81740f6ddc23add67b616f91e2d007b2a

Contents?: true

Size: 118 Bytes

Versions: 5

Compression:

Stored size: 118 Bytes

Contents

class Array
  def extract_pry_singular_options!
    if last.is_a?(Hash)
      pop
    else
      {}
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pry-singular-0.1.7 lib/pry-singular/extract_pry_singular_options.rb
pry-singular-0.1.6 lib/pry-singular/extract_pry_singular_options.rb
pry-singular-0.1.5 lib/pry-singular/extract_pry_singular_options.rb
pry-singular-0.1.4 lib/pry-singular/extract_pry_singular_options.rb
pry-singular-0.1.3 lib/pry-singular/extract_pry_singular_options.rb