Module: Virtual::Method

Defined in:
lib/virtual/method.rb

Class Method Summary collapse

Class Method Details

.define(target_class, method_name, &blk) ⇒ Object



3
4
5
6
7
8
# File 'lib/virtual/method.rb', line 3

def self.define(target_class, method_name, &blk)
  blk ||= proc do |*|
  end

  target_class.send :define_method, method_name, &blk
end