Sha256: 672d2f29257b26aae916c77549dbb1d9c52ab199a0f091fd62311e924ada2134
Contents?: true
Size: 435 Bytes
Versions: 2
Compression:
Stored size: 435 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__ 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.1 | lib/twitter_bot_generator/templates/src/test_bot.rb.erb |
twitter_bot_generator-0.2.0 | lib/twitter_bot_generator/templates/src/test_bot.rb.erb |