Class: Text
Instance Method Summary collapse
- #add_activity(name, params = {}) ⇒ Object
- #add_role(name, params = {}) ⇒ Object
- #add_story(name, params = {}) ⇒ Object
- #add_task(name, params = {}) ⇒ Object
- #done ⇒ Object
Instance Method Details
#add_activity(name, params = {}) ⇒ Object
6 7 8 |
# File 'lib/cards/text.rb', line 6 def add_activity(name, params = {}) puts " #{name}" end |
#add_role(name, params = {}) ⇒ Object
2 3 4 |
# File 'lib/cards/text.rb', line 2 def add_role(name, params = {}) puts name end |
#add_story(name, params = {}) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/cards/text.rb', line 14 def add_story(name, params = {}) string = " #{name}" string << " - #{params[:description]}" unless params[:description].blank? string << " - #{params[:estimate]}" unless params[:estimate].blank? puts string end |
#add_task(name, params = {}) ⇒ Object
10 11 12 |
# File 'lib/cards/text.rb', line 10 def add_task(name, params = {}) puts " #{name}" end |
#done ⇒ Object
21 22 |
# File 'lib/cards/text.rb', line 21 def done end |