lib/lamian.rb in lamian-1.9.0 vs lib/lamian.rb in lamian-1.10.0
- old
+ new
@@ -50,21 +50,21 @@
def logger
Lamian::Logger.current
end
# Collects logs sent inside block
- def run(&block)
- logger.run(&block)
+ def run(&)
+ logger.run(&)
end
# Dumps log collected in this run
# @param format [Symbol]
# requested format of log. At this point, returns raw log if falsey
# or log without controll sequences (such as '[23m') if truthy
# value given (for now)
# @return formatted log (String by default)
def dump(format: nil)
- logger.dump(format: format)
+ logger.dump(format:)
end
# Truncates the collected log to the specified limit and dumps it.
# @return [String, nil] truncated formatted log.
def dump_limited