Exception: NeedsResources::RequiredAttributeError
- Inherits:
-
StandardError
- Object
- StandardError
- NeedsResources::RequiredAttributeError
- Defined in:
- lib/needs_resources/required_attribute_error.rb
Instance Method Summary collapse
-
#initialize(obj, name) ⇒ RequiredAttributeError
constructor
A new instance of RequiredAttributeError.
Constructor Details
#initialize(obj, name) ⇒ RequiredAttributeError
Returns a new instance of RequiredAttributeError.
4 5 6 |
# File 'lib/needs_resources/required_attribute_error.rb', line 4 def initialize(obj, name) super "Missing resource in config file: #{name} (in #{obj.respond_to?(:name) ? obj.name : obj.to_s})" end |