Class: EaseEngine::Log::IO
- Inherits:
-
Object
- Object
- EaseEngine::Log::IO
- Defined in:
- lib/ease_engine/log.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#file ⇒ Object
Returns the value of attribute file.
-
#flags ⇒ Object
Returns the value of attribute flags.
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(file, flags = FLAG_ALL) ⇒ IO
constructor
A new instance of IO.
- #write(time, msg) ⇒ Object
Constructor Details
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
13 14 15 |
# File 'lib/ease_engine/log.rb', line 13 def file @file end |
#flags ⇒ Object
Returns the value of attribute flags.
13 14 15 |
# File 'lib/ease_engine/log.rb', line 13 def flags @flags end |
Instance Method Details
#close ⇒ Object
25 26 27 |
# File 'lib/ease_engine/log.rb', line 25 def close @file.close end |
#write(time, msg) ⇒ Object
20 21 22 23 |
# File 'lib/ease_engine/log.rb', line 20 def write( time, msg ) @file.puts "#{time} #{msg}" @file.flush end |