Title / Description
Code class UltimateProxy < BasicObject def initialize(object) delegate_everything_to(object) end private def delegate_everything_to(object) metaclass = class << self; self; end metaclass.__send__(:define_method, :method_missing) do |message, *args| object.__send__ message, *args end end end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code