1
0
Fork 0
mirror of https://github.com/ms-ati/docile synced 2023-03-27 23:21:52 -04:00

Remove untested special cases for #id and #sub (presumed unnecessary)

This commit is contained in:
Marc Siegel 2013-07-05 16:36:11 -04:00
parent b7d43ac57e
commit 1e22c6513a

View file

@ -19,15 +19,6 @@ module Docile
@__fallback__ = fallback
end
def id
@__receiver__.__send__(:id)
end
# Special case due to `Kernel#sub`'s existence
def sub(*args, &block)
__proxy_method__(:sub, *args, &block)
end
# Special case to allow proxy instance variables
def instance_variables
# Ruby 1.8.x returns string names, convert to symbols