Class: Cranky::Linter::FactoryError
- Inherits:
-
Object
- Object
- Cranky::Linter::FactoryError
- Defined in:
- lib/cranky/linter.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(wrapped_error, factory_name) ⇒ FactoryError
constructor
A new instance of FactoryError.
- #location ⇒ Object
- #message ⇒ Object
Constructor Details
#initialize(wrapped_error, factory_name) ⇒ FactoryError
Returns a new instance of FactoryError.
34 35 36 37 |
# File 'lib/cranky/linter.rb', line 34 def initialize(wrapped_error, factory_name) @wrapped_error = wrapped_error @factory_name = factory_name end |
Instance Method Details
#location ⇒ Object
44 45 46 |
# File 'lib/cranky/linter.rb', line 44 def location @factory_name end |
#message ⇒ Object
39 40 41 42 |
# File 'lib/cranky/linter.rb', line 39 def = @wrapped_error. "* #{location} - #{} (#{@wrapped_error.class.name})" end |