Sha256: a9551f38cb8bd4dcb55483210dfe0f8e98547612917bb37c9b3e4cd97c168d4a
Contents?: true
Size: 294 Bytes
Versions: 2
Compression:
Stored size: 294 Bytes
Contents
require 'ronin/generators/generator' class TemplatedGenerator < Generators::Generator TEMPLATE_FILE = File.join('generators','templated.txt.erb') def initialize(message) @message = message end protected def generate! render_file TEMPLATE_FILE, 'templated.txt' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ronin-gen-0.1.1 | spec/generators/classes/templated_generator.rb |
ronin-gen-0.1.0 | spec/generators/helpers/generators/templated_generator.rb |