Exception: NeedsResources::RequiredAttributeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/needs_resources/required_attribute_error.rb

Instance Method Summary collapse

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