Class: Rabbit::Format::Size

Inherits:
Object
  • Object
show all
Defined in:
lib/rabbit/formatter.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Size

Returns a new instance of Size.



97
98
99
100
# File 'lib/rabbit/formatter.rb', line 97

def initialize(value)
  value = value.ceil if value.is_a?(Numeric)
  super(value)
end