Class: FactoryGirl::Linter::FactoryError
- Inherits:
-
Object
- Object
- FactoryGirl::Linter::FactoryError
- Defined in:
- lib/factory_girl/linter.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(wrapped_error, factory) ⇒ FactoryError
constructor
A new instance of FactoryError.
- #location ⇒ Object
- #message ⇒ Object
Constructor Details
#initialize(wrapped_error, factory) ⇒ FactoryError
Returns a new instance of FactoryError.
30 31 32 33 |
# File 'lib/factory_girl/linter.rb', line 30 def initialize(wrapped_error, factory) @wrapped_error = wrapped_error @factory = factory end |
Instance Method Details
#location ⇒ Object
40 41 42 |
# File 'lib/factory_girl/linter.rb', line 40 def location @factory.name end |
#message ⇒ Object
35 36 37 38 |
# File 'lib/factory_girl/linter.rb', line 35 def = @wrapped_error. "* #{location} - #{} (#{@wrapped_error.class.name})" end |