Class: Carb::Container::ErrorContainer
- Inherits:
-
Object
- Object
- Carb::Container::ErrorContainer
- Includes:
- Base
- Defined in:
- lib/carb/container/error_container.rb
Overview
Container which holds no dependency and will raise every time one is being fetched
Instance Method Summary collapse
-
#[](name) ⇒ Object
This method will always raise an error.
- #has_key?(name) ⇒ false
Instance Method Details
#[](name) ⇒ Object
This method will always raise an error
15 16 17 18 |
# File 'lib/carb/container/error_container.rb', line 15 def [](name) error_class = ::Carb::Container::DependencyMissingError raise error_class.new(name), format(error_class::MESSAGE, name.to_s) end |
#has_key?(name) ⇒ false
22 23 24 |
# File 'lib/carb/container/error_container.rb', line 22 def has_key?(name) false end |