module Nuggets::Integer::LengthMixin
Public Instance Methods
digit_count → anInteger
click to toggle source
Returns the digit count of int. [ruby-core:22383]
# File lib/nuggets/integer/length_mixin.rb 43 def digit_count 44 abs.length 45 end
length → anInteger
click to toggle source
Returns the length of int.
# File lib/nuggets/integer/length_mixin.rb 35 def length 36 to_s.length 37 end