Class: SGF::DefaultEventListener
- Inherits:
-
Object
- Object
- SGF::DefaultEventListener
show all
- Includes:
- Debugger
- Defined in:
- lib/sgf/default_event_listener.rb
Instance Method Summary
collapse
Methods included from Debugger
#debug, #disable_debug_mode, #enable_debug_mode
Constructor Details
Returns a new instance of DefaultEventListener.
5
6
7
|
# File 'lib/sgf/default_event_listener.rb', line 5
def initialize debug_mode = false
enable_debug_mode if debug_mode
end
|
Instance Method Details
#end_game ⇒ Object
33
34
35
|
# File 'lib/sgf/default_event_listener.rb', line 33
def end_game
debug "end_game"
end
|
#end_variation ⇒ Object
29
30
31
|
# File 'lib/sgf/default_event_listener.rb', line 29
def end_variation
debug "end_variation"
end
|
#property_name=(name) ⇒ Object
17
18
19
|
# File 'lib/sgf/default_event_listener.rb', line 17
def property_name= name
debug "property_name = '#{name}'"
end
|
#property_value=(value) ⇒ Object
21
22
23
|
# File 'lib/sgf/default_event_listener.rb', line 21
def property_value= value
debug "property_value = '#{value}'"
end
|
#start_game ⇒ Object
9
10
11
|
# File 'lib/sgf/default_event_listener.rb', line 9
def start_game
debug 'start_game'
end
|
#start_node ⇒ Object
13
14
15
|
# File 'lib/sgf/default_event_listener.rb', line 13
def start_node
debug 'start_node'
end
|
#start_variation ⇒ Object
25
26
27
|
# File 'lib/sgf/default_event_listener.rb', line 25
def start_variation
debug "start_variation"
end
|