soveran-override 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/override.rb +0 -6
- metadata +1 -1
data/lib/override.rb
CHANGED
@@ -22,12 +22,6 @@
|
|
22
22
|
require "rubygems"
|
23
23
|
require "metaid"
|
24
24
|
|
25
|
-
# def override object, method, result
|
26
|
-
# object.metaclass.send(:define_method, method) do |*_|
|
27
|
-
# result
|
28
|
-
# end
|
29
|
-
# end
|
30
|
-
|
31
25
|
def override object, methods
|
32
26
|
methods.each do |method, result|
|
33
27
|
object.metaclass.send(:define_method, method) do |*_|
|