lib/web/progressbar4web.rb in narou-3.4.8 vs lib/web/progressbar4web.rb in narou-3.5.0

- old
+ new

@@ -14,11 +14,11 @@ @@push_server = server end alias :original_initialize :initialize - def initialize(*args) - original_initialize(*args) + def initialize(*args, **opt) + original_initialize(*args, **opt) @@push_server.send_all("progressbar.init" => { target_console: io.target_console }) end def output(num) percent = calc_ratio(num) * 100