tap icon indicating copy to clipboard operation
tap copied to clipboard

Do not use method missing on tap-gen manifest

Open thinkerbot opened this issue 14 years ago • 0 comments

By using method missing you open up subtle bugs:

    m.template_files do |source, target|
      m.file(target) {|io| io << File.read(source) }
    end

Does not work (registers template_files as an action) whereas this is correct:

    template_files do |source, target|
      m.file(target) {|io| io << File.read(source) }
    end

It would be preferable for the first to throw an error or something.

thinkerbot avatar Dec 07 '10 15:12 thinkerbot