SIGN IN SIGN UP
Homebrew / brew UNCLAIMED

🍺 The missing package manager for macOS (or Linux)

0 0 185 Ruby

formatter: move formatting methods from kernel

Move `disk_usage_readable_size_unit`, `disk_usage_readable`,
`number_readable`, and `redact_secrets` from `extend/kernel.rb` to
`utils/formatter.rb` as class methods. These methods are formatting
utilities that fit better in the Formatter module.

Update all call sites and move corresponding specs to formatter_spec.rb.
D
Douglas Eichelberger committed
b95d9cef17c4df806ba0fdddbcd28741bb0e6f60
Parent: b5c9928