Class: Numeric

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

Instance Method Summary collapse

Instance Method Details

#to_bytehexObject


70
71
72
# File 'lib/core_ext.rb', line 70

def to_bytehex
  self.to_s(16).rjust(2, '0').upcase
end