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, line 43
def digit_count
  abs.length
end
length → anInteger click to toggle source

Returns the length of int.

# File lib/nuggets/integer/length_mixin.rb, line 35
def length
  to_s.length
end