From: Intransition Date: 2012-01-28T10:40:56+09:00 Subject: Re: method_missing - but can it be "isolated" to per-project basis? ------=_Part_398_24366272.1327714852932 Content-Type: multipart/alternative; boundary="----=_Part_399_25654495.1327714852932" ------=_Part_399_25654495.1327714852932 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Not exactly sure what you are trying to accomplish, but you could create a base class for your project and use it where ever it is needed. module MyLib class Base def method_missing(*args) return args.join ' ' end end class Foo < Base ... end end ------=_Part_399_25654495.1327714852932 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Not exactly sure what you are trying to accomplish, but you could crea= te a base class for your project and use it where ever it is needed.
<= div>
  module MyLib
     clas= s Base
   = ;   def method_missing(*args)
<= span style=3D"text-align: left; ">        return args.j= oin ' '
      end
    end

    class Foo < Base
       ...
    end
  end
------=_Part_399_25654495.1327714852932-- ------=_Part_398_24366272.1327714852932--