Class: Polisher::Component::Missing
- Inherits:
-
Object
- Object
- Polisher::Component::Missing
- Defined in:
- lib/polisher/util/component.rb
Instance Method Summary collapse
-
#initialize ⇒ Missing
constructor
A new instance of Missing.
- #method_missing(method_id, *_args, &_bl) ⇒ Object
Constructor Details
#initialize ⇒ Missing
Returns a new instance of Missing.
12 13 14 |
# File 'lib/polisher/util/component.rb', line 12 def initialize(*) raise "polisher is missing a dependency - cannot instantiate" end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_id, *_args, &_bl) ⇒ Object
16 17 18 |
# File 'lib/polisher/util/component.rb', line 16 def method_missing(method_id, *_args, &_bl) raise "polisher is missing a dependency - cannot invoke #{method_id} on #{self}" end |