Module: SlackTrello::TextParser
- Included in:
- CreateCardCommand, RetroCommand
- Defined in:
- lib/slack_trello/text_parser.rb
Instance Method Summary collapse
Instance Method Details
#args ⇒ Object
3 4 5 6 |
# File 'lib/slack_trello/text_parser.rb', line 3 def args return "" unless valid_text_format? matched_text[1].strip.split(" ") end |
#num_args ⇒ Object
17 18 19 |
# File 'lib/slack_trello/text_parser.rb', line 17 def num_args args.length end |
#text_message ⇒ Object
8 9 10 11 |
# File 'lib/slack_trello/text_parser.rb', line 8 def return "" unless valid_text_format? matched_text[2].strip end |
#valid_text_format? ⇒ Boolean
13 14 15 |
# File 'lib/slack_trello/text_parser.rb', line 13 def valid_text_format? !!matched_text end |