Class: FileManager::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/file_manager.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Logger

Returns a new instance of Logger.



36
37
38
# File 'lib/file_manager.rb', line 36

def initialize options
  @options = options
end

Instance Method Details



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