Exception: Abyss::Errors::AbstractMethod

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/abyss/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ AbstractMethod

Returns a new instance of AbstractMethod.



20
21
22
# File 'lib/abyss/errors.rb', line 20

def initialize(name)
  self.name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



18
19
20
# File 'lib/abyss/errors.rb', line 18

def name
  @name
end

Instance Method Details

#messageObject



24
25
26
# File 'lib/abyss/errors.rb', line 24

def message
  "Abstract method: must override #{name} in a base class."
end