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