Sha256: 4e691edbdd0f41645a4a4c2c3c0cf383f98ae3f402d6dfd91a41920a7403df16

Contents?: true

Size: 253 Bytes

Versions: 1

Compression:

Stored size: 253 Bytes

Contents

require 'rails/generators'

class PoemGenerator < Rails::Generators::Base
  desc "Read poetry, dude!"

  def self.source_root
    @source_root ||= File.join(File.dirname(__FILE__), 'template')
  end

  def poem
    template "poetry/raven.txt"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
production_ready_ketan-0.1.0 lib/generators/production_ready_ketan/poem_generator.rb