Class: FactoryGirl::Linter::FactoryTraitError
- Inherits:
-
FactoryError
- Object
- FactoryError
- FactoryGirl::Linter::FactoryTraitError
- Defined in:
- lib/factory_girl/linter.rb
Instance Method Summary collapse
-
#initialize(wrapped_error, factory, trait_name) ⇒ FactoryTraitError
constructor
A new instance of FactoryTraitError.
- #location ⇒ Object
Methods inherited from FactoryError
Constructor Details
#initialize(wrapped_error, factory, trait_name) ⇒ FactoryTraitError
Returns a new instance of FactoryTraitError.
46 47 48 49 |
# File 'lib/factory_girl/linter.rb', line 46 def initialize(wrapped_error, factory, trait_name) super(wrapped_error, factory) @trait_name = trait_name end |
Instance Method Details
#location ⇒ Object
51 52 53 |
# File 'lib/factory_girl/linter.rb', line 51 def location "#{@factory.name}+#{@trait_name}" end |