Module: AIPP::Patcher::ClassMethods

Defined in:
lib/aipp/patcher.rb

Instance Method Summary collapse

Instance Method Details

#patch(klass, attribute, &block) ⇒ Object



14
15
16
# File 'lib/aipp/patcher.rb', line 14

def patch(klass, attribute, &block)
  (patches[self] ||= []) << [klass, attribute, block]
end

#patchesObject



10
11
12
# File 'lib/aipp/patcher.rb', line 10

def patches
  class_variable_get(:@@patches)
end