Sha256: 67b0bbb4e75ae7deced95c6657f2f04bdbb24dcd06fca676bcb1a0b8cad7b4e2
Contents?: true
Size: 383 Bytes
Versions: 19
Compression:
Stored size: 383 Bytes
Contents
module VvmRb module Base def self.included(base) base.extend(ClassMethods) end module ClassMethods def before_method(*names) names.each do |name| m = instance_method(name) define_method(name) do |*args, &block| yield m.bind(self).call(*args, &block) end end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems