lib/pg_objects/logger.rb in pg_objects-0.5.6 vs lib/pg_objects/logger.rb in pg_objects-0.5.7
- old
+ new
@@ -1,13 +1,13 @@
module PgObjects
##
# Console output
#
- # Pass +true+ to constructor to suppress output
+ # Pass +silent: true+ to constructor to suppress output
class Logger
attr_reader :silent
- def initialize(silent = false)
+ def initialize(silent: false)
@silent = silent
end
def write(str)
puts "== #{str} ".ljust(80, '=') unless silent