Class: SkypeR::Parser::ClearChathistoryCommand

Inherits:
CommandBase
  • Object
show all
Defined in:
lib/skyper/command.rb

Overview

<clear_chathistory_command> := CLEAR CHATHISTORY

Instance Attribute Summary

Attributes inherited from CommandBase

#response

Instance Method Summary collapse

Constructor Details

#initializeClearChathistoryCommand

Returns a new instance of ClearChathistoryCommand.



432
433
434
435
436
437
438
439
440
441
# File 'lib/skyper/command.rb', line 432

def initialize
  @parser = lambda do
    Yaparc::SeqParser.new(
                          Yaparc::Symbol.new('CLEAR'),
                          Yaparc::Symbol.new('CHATHISTORY')
                          ) do |_,_|
      {:command_instance => self}
    end
  end
end