Method: MeetupGenerator#replace_word
- Defined in:
- lib/meetup_generator.rb
#replace_word(template) ⇒ Object
87 88 89 90 91 |
# File 'lib/meetup_generator.rb', line 87 def replace_word(template) return template unless template.include?('%WORD%') replace_word(template.sub('%WORD%', words.sample.capitalize)) end |