Flowdock
def_erb_method(methodname, erb) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/erb.rb, line 816
    def def_erb_method(methodname, erb)
      if erb.kind_of? String
        fname = erb
        File.open(fname) {|f| erb = ERB.new(f.read) }
        erb.def_method(self, methodname, fname)
      else
        erb.def_method(self, methodname)
      end
    end
Register or log in to add new notes.