Exception: Overrider::NoSuperMethodError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, method, backtrace = nil) ⇒ NoSuperMethodError



9
10
11
12
13
14
# File 'lib/overrider.rb', line 9

def initialize(klass, method, backtrace = nil)
  super("`#{method.owner}##{method.name}` requires super method.")
  @override_class = klass
  @unbound_method = method
  set_backtrace(backtrace) if backtrace
end

Instance Attribute Details

#override_classObject (readonly)

Returns the value of attribute override_class.



7
8
9
# File 'lib/overrider.rb', line 7

def override_class
  @override_class
end

#unbound_methodObject (readonly)

Returns the value of attribute unbound_method.



7
8
9
# File 'lib/overrider.rb', line 7

def unbound_method
  @unbound_method
end