ERB::DefMethod (Module)

In: libraries/erb.rb

Methods

Public Instance methods

[Source]

     # File libraries/erb.rb, line 479
479:     def def_erb_method(methodname, erb)
480:       if erb.kind_of? String
481:         fname = erb
482:         File.open(fname) {|f| erb = ERB.new(f.read) }
483:         erb.def_method(self, methodname, fname)
484:       else
485:         erb.def_method(self, methodname)
486:       end
487:     end

[Validate]