# ERB::DefMethod (Module)

In: | erb.rb

## Methods

def_erb_method

## Public Instance methods

def_erb_method(methodname, erb)

[Source]

    # File erb.rb, line 462
        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

[Validate]