module Virtual::Method

Public Class Methods

define(target_class, method_name, &blk) click to toggle source
# 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