Sha256: 72ffc9bc9248967b48eeefea67e7689e4bb92efa3e4c4d01ac7b09ac5115aece

Contents?: true

Size: 245 Bytes

Versions: 8

Compression:

Stored size: 245 Bytes

Contents

require 'ronin/gen/generator'

class TemplatedGenerator < Gen::Generator

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

  class_option :message, :type => :string

  def generate
    erb TEMPLATE_FILE, 'templated.txt'
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ronin-gen-1.0.1 spec/gen/classes/templated_generator.rb
ronin-gen-1.0.1.rc1 spec/gen/classes/templated_generator.rb
ronin-gen-1.0.0 spec/gen/classes/templated_generator.rb
ronin-gen-1.0.0.rc2 spec/gen/classes/templated_generator.rb
ronin-gen-1.0.0.rc1 spec/gen/classes/templated_generator.rb
ronin-gen-1.0.0.pre3 spec/gen/classes/templated_generator.rb
ronin-gen-1.0.0.pre2 spec/gen/classes/templated_generator.rb
ronin-gen-1.0.0.pre1 spec/gen/classes/templated_generator.rb