class Class

Public Instance Methods

filename(str) click to toggle source
# File lib/puppet_module/pkg/tasks/build.rb, line 12
  def filename(str)
    self.class_eval <<-EOS
      def filename
        "#{str}"
      end
    EOS
  end
type(sym) click to toggle source
# File lib/puppet_module/pkg/tasks/build.rb, line 4
  def type(sym)
    self.class_eval <<-EOS
      def type
        "#{sym.to_s}"
      end
    EOS
  end