Sha256: f34b6528db6708429b03bab9bd31c1ad17d10cc0e3bc00d2fedf5b0515605ca6
Contents?: true
Size: 444 Bytes
Versions: 2
Compression:
Stored size: 444 Bytes
Contents
class <%= class_name %> class << self def generate greetings.sample end protected def greetings @greetings ||= load_txt_file 'greetings.txt' end private def load_txt_file file_name home_sweet_home = File.expand_path File.dirname(File.dirname(__FILE__)) ultimate_pathway = File.join home_sweet_home, 'lib', file_name (File.readlines ultimate_pathway).map &:strip end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twitter_bot_generator-0.2.3 | lib/twitter_bot_generator/templates/src/test_bot.rb.erb |
twitter_bot_generator-0.2.2 | lib/twitter_bot_generator/templates/src/test_bot.rb.erb |