Class: Rabbit::Format::Size

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

Instance Method Summary collapse

Instance Method Details

#pango_valueObject


105
106
107
108
109
110
111
# File 'lib/rabbit/formatter.rb', line 105

def pango_value
  if @value > Pango::SCALE # For backward compatibility
    @value.ceil
  else
    (@value * Pango::SCALE).ceil
  end
end