This is the module that allows the sugared syntax: :ClassToExtend.include!
36 37 38 39 40 41 42 43 44
# File 'lib/nanoboy/hook.rb', line 36 def self.included(klass) klass.class_eval do Nanoboy.methods.each do |method| define_method "#{method}!" do |extension| Nanoboy.send("#{method}!", self, extension) end end end end