Method: Numeric#pixels

Defined in:
lib/sugarcube-numbers/numeric.rb

#pixelsObject Also known as: pixel

Uses the screen scale to determine how many pixels (converts "pixels" to "points")



9
10
11
# File 'lib/sugarcube-numbers/numeric.rb', line 9

def pixels
  self.to_f / UIScreen.mainScreen.scale
end