lib/text_filters.rb
# Having the method_missing catchall in conjunction with get_binding 
# allows us to use the hash as a Context for ERB
Having the method_missing catchall in conjunction with get_binding
allows us to use the hash as a Context for ERB
Having the method_missing catchall in conjunction with get_binding allows us to use the hash as a Context for ERB
def method_missing(meth, *arg)
    if self.has_key? meth.to_s
      self[meth.to_s]
    else
      super
    end
  end
def method_missing ( meth , * arg ) if self . has_key? meth . to_s self [ meth . to_s ] else super end end
Having the method_missing catchall in conjunction with get_binding
allows us to use the hash as a Context for ERB
Having the method_missing catchall in conjunction with get_binding allows us to use the hash as a Context for ERB
meth
<not_specific>
arg
<not_specific>