Class: Overlook::Csgo::Demo::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/overlook/csgo/demo/base.rb

Instance Method Summary collapse

Constructor Details

#initialize(io, parser_config) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/overlook/csgo/demo/base.rb', line 6

def initialize(io, parser_config)
  @parser = Parser.new(io, parser_config)
end

Instance Method Details

#parseObject



14
15
16
# File 'lib/overlook/csgo/demo/base.rb', line 14

def parse
  @parser.parse
end

#subscribe(subscriber) ⇒ Object



10
11
12
# File 'lib/overlook/csgo/demo/base.rb', line 10

def subscribe(subscriber)
  @parser.subscribe(subscriber)
end