Class: DTK::DSL::Error::NoMethodForConcreteClass

Inherits:
DTK::DSL::Error
  • Object
show all
Defined in:
lib/dsl/error/subclasses.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ NoMethodForConcreteClass

Returns a new instance of NoMethodForConcreteClass.



25
26
27
28
29
30
31
32
33
# File 'lib/dsl/error/subclasses.rb', line 25

def initialize(klass)
  method_string = caller[1]
  method_ref =
    if method_string =~ /`(.+)'$/
      method = $1
      " '#{method}'"
    end
  super("No method#{method_ref} for concrete class #{klass}")
end