Class: Rabbit::Format::Size
- Inherits:
-
Object
- Object
- Rabbit::Format::Size
- Defined in:
- lib/rabbit/formatter.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ Size
constructor
A new instance of Size.
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 |