Class: NilClass

Inherits:
Object
  • Object
show all
Defined in:
lib/reverse_geocode.rb

Instance Method Summary collapse

Instance Method Details

#/(other) ⇒ Object

Raises a more useful error when nil#/ is called.

Raises:

  • (ArgumentError)


112
113
114
# File 'lib/reverse_geocode.rb', line 112

def /(other)
  raise ArgumentError, "Unknown method '/' called on nil with #{other.inspect}. Maybe you were looking for a Hash?"
end