Sha256: 22bd561369afcc751c734040ed8b4904a4951bcea50acf385d2da8493f7bbe40

Contents?: true

Size: 246 Bytes

Versions: 7

Compression:

Stored size: 246 Bytes

Contents

require 'ronin/gen/generator'

class TemplatedGenerator < Gen::Generator

  TEMPLATE_FILE = File.join('generators','templated.txt.erb')

  parameter :message, :type => String

  def generate
    template TEMPLATE_FILE, 'templated.txt'
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ronin-gen-1.2.0 spec/gen/classes/templated_generator.rb
ronin-gen-1.2.0.rc2 spec/gen/classes/templated_generator.rb
ronin-gen-1.2.0.rc1 spec/gen/classes/templated_generator.rb
ronin-gen-1.1.1 spec/gen/classes/templated_generator.rb
ronin-gen-1.1.0 spec/gen/classes/templated_generator.rb
ronin-gen-1.1.0.rc2 spec/gen/classes/templated_generator.rb
ronin-gen-1.1.0.rc1 spec/gen/classes/templated_generator.rb