Exception: Hypo::MissingComponentError

Inherits:
ContainerError show all
Defined in:
lib/hypo/missing_component_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component_name) ⇒ MissingComponentError

Returns a new instance of MissingComponentError.



5
6
7
8
9
10
# File 'lib/hypo/missing_component_error.rb', line 5

def initialize(component_name)
  message = "Component with name \"#{component_name}\" is not registered"
  super(message)

  @component_name = component_name
end

Instance Attribute Details

#component_nameObject (readonly)

Returns the value of attribute component_name.



3
4
5
# File 'lib/hypo/missing_component_error.rb', line 3

def component_name
  @component_name
end