Class: Discombobulator

Inherits:
BasicObject
Defined in:
lib/discombobulator.rb,
lib/discombobulator.rb

Defined Under Namespace

Classes: Config, DodgeAttack, SuperCall, SuperPolymorphic, SwapGlobals

Class Method Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object



13
14
15
16
# File 'lib/discombobulator.rb', line 13

def method_missing(meth, *args, &block)
  plugin = plugins.sample
  plugin.call(meth, *args, &block)
end

Class Method Details

.method_missing(meth, *args, &block) ⇒ Object



9
10
11
# File 'lib/discombobulator.rb', line 9

def self.method_missing(meth, *args, &block)
  self.new.method_missing(meth, *args, &block)
end