Class: Debugmotion::Logger
- Inherits:
-
Object
- Object
- Debugmotion::Logger
- Defined in:
- lib/debugmotion/logger.rb
Constant Summary collapse
- @@instance =
nil
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.instance ⇒ Object
7 8 9 10 |
# File 'lib/debugmotion/logger.rb', line 7 def self.instance return @@instance unless @@instance.nil? @@instance = Logger.alloc.init end |
Instance Method Details
#log(value) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/debugmotion/logger.rb', line 17 def log(value) unless window_unavailable? App.notification_center.post("DMEventLogged", value) else delay_logging(value) end end |
#start(frame) ⇒ Object
12 13 14 15 |
# File 'lib/debugmotion/logger.rb', line 12 def start(frame) @console = Console.alloc.initWithFrame(frame) start_tracking_log_events end |