Class: Twitch::Bot::CommandParser

Inherits:
Object
  • Object
show all
Defined in:
lib/twitch/bot/message_parser.rb

Overview

Abstract base class for a parser for a specific IRC command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ CommandParser

Returns a new instance of CommandParser.



42
43
44
# File 'lib/twitch/bot/message_parser.rb', line 42

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



40
41
42
# File 'lib/twitch/bot/message_parser.rb', line 40

def message
  @message
end