Sha256: 2b8322936466dfc4a3865ac812d8012390bb90903fa26f5c20d4e85e51bdcf6e

Contents?: true

Size: 314 Bytes

Versions: 1

Compression:

Stored size: 314 Bytes

Contents

class <%= class_name %>

  class << self

    def generate
      greetings.sample
    end

  protected

    def greetings
      ['Hello World!', 'Hello Twitter!', 'Hello Ruby!']
    end

  private

    def load_txt_file file_name
      (File.readlines (File.join 'lib', file_name)).map &:strip
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
twitter_bot_generator-0.1.2 lib/twitter_bot_generator/templates/src/test_bot.rb.erb