Module: Pod::Flash::PatchingMixin

Included in:
TimingMixin
Defined in:
lib/cocoapods-flash/core/patch.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



11
12
13
# File 'lib/cocoapods-flash/core/patch.rb', line 11

def self.included(base)
  base.extend(self)
end

Instance Method Details

#patch_method(method_name, &block) ⇒ Object



4
5
6
7
8
9
# File 'lib/cocoapods-flash/core/patch.rb', line 4

def patch_method(method_name, &block)
  raw_method_name = "flash_#{method_name}"
  alias_method raw_method_name, method_name
  define_method(method_name, &block)
  private raw_method_name
end