lib/mpatch/proc.rb in mpatch-1.1.0 vs lib/mpatch/proc.rb in mpatch-1.2.0
- old
+ new
@@ -7,21 +7,6 @@
# c.call(1) #=> 20
def *(other)
Proc.new { |*args| self[*other[*args]] }
end unless method_defined? :*
- def call_with_binding(bind, *args)
- Bindless.new([bind]).run_proc(self, *args)
- end
-
- def call_with_obj(obj, *args)
- m = nil
- p = self
- Object.class_eval do
- define_method :a_temp_method_name, &p
- m = instance_method :a_temp_method_name
- remove_method :a_temp_method_name
- end
- m.bind(obj).call(*args)
- end
-
end