Class: Polisher::Component::Missing

Inherits:
Object
  • Object
show all
Defined in:
lib/polisher/util/component.rb

Instance Method Summary collapse

Constructor Details

#initializeMissing

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