Class: SkypeR::Parser::ChatID

Inherits:
Yaparc::AbstractParser
  • Object
show all
Defined in:
lib/skyper/parser.rb

Overview

<chat_id> # - chat identifier; string (usually looks like “#me/$target;012345679012345”)

Instance Method Summary collapse

Constructor Details

#initializeChatID

Returns a new instance of ChatID.



57
58
59
60
61
# File 'lib/skyper/parser.rb', line 57

def initialize
  @parser = lambda do
    Yaparc::Token.new(Yaparc::RegexParser.new(/#[A-Za-z]*\/\$[A-Za-z]*;[0-9]*/))
  end
end