From: Kouhei S. <ko...@co...> - 2014-11-16 10:58:11
|
In <CAKHkkfPn=quw...@ma...> "Re: [ruby-gnome2-devel-en] [ruby-gnome2-cvs] ruby-gnome2/ruby-gnome2@2f5d769 [master] glib2: support flag argument in GLib.format_size" on Sun, 16 Nov 2014 15:37:50 +0900, hiroshi hatake <cos...@gm...> wrote: >> + assert_equal("1.0 GiB", >> > + GLib.format_size(1024 * 1024 * 1024, >> > + GLib::FormatSizeFlags::IEC_UNITS)) >> >> Please use GLib.format_size(1024 * 1024 * 1024, :flags => :iec_units) >> style API. >> >> If glib_format_size family adds more options, we also need >> to add more arguments with the current style. If we use >> options Hash style, we can extend API easily. >> > > Thank you for your suggestion! > I've committed `GLib.format_size(1024 * 1024 * 1024, :flags => :iec_units)` > style API change at master. Thanks! |