Class: FlashPlayer::LogFile
- Inherits:
-
Object
- Object
- FlashPlayer::LogFile
- Defined in:
- lib/flashplayer/log_file.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#player_pid ⇒ Object
Returns the value of attribute player_pid.
-
#result_failure ⇒ Object
Returns the value of attribute result_failure.
-
#result_string ⇒ Object
Returns the value of attribute result_string.
Instance Method Summary collapse
-
#initialize ⇒ LogFile
constructor
A new instance of LogFile.
- #tail(thread = nil, player_pid = nil) ⇒ Object
Constructor Details
#initialize ⇒ LogFile
Returns a new instance of LogFile.
16 17 18 19 |
# File 'lib/flashplayer/log_file.rb', line 16 def initialize @logger = $stdout super end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
11 12 13 |
# File 'lib/flashplayer/log_file.rb', line 11 def logger @logger end |
#player_pid ⇒ Object
Returns the value of attribute player_pid.
12 13 14 |
# File 'lib/flashplayer/log_file.rb', line 12 def player_pid @player_pid end |
#result_failure ⇒ Object
Returns the value of attribute result_failure.
14 15 16 |
# File 'lib/flashplayer/log_file.rb', line 14 def result_failure @result_failure end |
#result_string ⇒ Object
Returns the value of attribute result_string.
13 14 15 |
# File 'lib/flashplayer/log_file.rb', line 13 def result_string @result_string end |
Instance Method Details
#tail(thread = nil, player_pid = nil) ⇒ Object
21 22 23 24 |
# File 'lib/flashplayer/log_file.rb', line 21 def tail(thread = nil, player_pid = nil) self.player_pid = player_pid tail_path flashlog_path, thread end |