Module: SlackTrello::TextParser

Included in:
CreateCardCommand
Defined in:
lib/slack_trello/text_parser.rb

Instance Method Summary collapse

Instance Method Details

#argsObject



3
4
5
# File 'lib/slack_trello/text_parser.rb', line 3

def args
  matched_text[1].strip.split(" ")
end

#num_argsObject



15
16
17
# File 'lib/slack_trello/text_parser.rb', line 15

def num_args
  args.length
end

#text_messageObject



7
8
9
# File 'lib/slack_trello/text_parser.rb', line 7

def text_message
  matched_text[2].strip
end

#valid_text_format?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/slack_trello/text_parser.rb', line 11

def valid_text_format?
  !!matched_text
end