Class: FileManager::Logger
- Inherits:
-
Object
- Object
- FileManager::Logger
- Defined in:
- lib/file_manager.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Logger
constructor
A new instance of Logger.
- #print(text) ⇒ Object
- #puts(text) ⇒ Object
Constructor Details
#initialize(options) ⇒ Logger
Returns a new instance of Logger.
36 37 38 |
# File 'lib/file_manager.rb', line 36 def initialize @options = end |
Instance Method Details
#print(text) ⇒ Object
40 41 42 |
# File 'lib/file_manager.rb', line 40 def print(text) super text unless @options[:silent] end |
#puts(text) ⇒ Object
44 45 46 |
# File 'lib/file_manager.rb', line 44 def puts(text) super text unless @options[:silent] end |