Exception: AddressGeocoder::NeedToOveride
- Defined in:
- lib/address_geocoder/error.rb
Overview
Class that defines an error, to be thrown when a method needs to be overwritten by a child class.
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ NeedToOveride
constructor
A new instance of NeedToOveride.
- #message ⇒ Object
Constructor Details
#initialize(msg = nil) ⇒ NeedToOveride
Returns a new instance of NeedToOveride.
9 10 11 |
# File 'lib/address_geocoder/error.rb', line 9 def initialize(msg = nil) @msg = msg end |
Instance Method Details
#message ⇒ Object
13 14 15 16 |
# File 'lib/address_geocoder/error.rb', line 13 def msg = 'This Method Needs To Be Overrided' @msg ? "#{msg}: #{@msg}" : msg end |