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.



8
9
10
# File 'lib/abyss/errors.rb', line 8

def initialize(name)
  self.name = name
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/abyss/errors.rb', line 6

def name
  @name
end

Instance Method Details

#messageObject



12
13
14
# File 'lib/abyss/errors.rb', line 12

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