Class: Bootinq::Switch

Inherits:
BasicObject
Defined in:
lib/bootinq/switch.rb

Overview

:no-doc:

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/bootinq/switch.rb', line 12

def method_missing(name, *)
  if ::Bootinq.enabled?(name)
    yield()
  else
    nil
  end
end

Instance Method Details

#raise(*args) ⇒ Object

:no-doc:



8
9
10
# File 'lib/bootinq/switch.rb', line 8

def raise(*args) # :no-doc:
  ::Object.send(:raise, *args)
end