Module: StoryTime::String::InstanceMethods
- Defined in:
- lib/story_time/string.rb
Instance Method Summary collapse
Instance Method Details
#past_tense ⇒ Object
8 9 10 11 12 |
# File 'lib/story_time/string.rb', line 8 def past_tense pr = PresentReplacer.new found = pr.find self pr.replace self, found end |
#tagged ⇒ Object
20 21 22 |
# File 'lib/story_time/string.rb', line 20 def tagged return ::EngTagger.new.(self) end |
#third_person(name = "John Doe", gender = "male") ⇒ Object
14 15 16 17 18 |
# File 'lib/story_time/string.rb', line 14 def third_person(name = "John Doe", gender = "male") tp = ThirdPerson.new(name, gender) found = tp.find self tp.replace self, found end |