class Integer

Public Instance Methods

digits() click to toggle source
# File app/lib/lib.rb, line 34
def digits
  self.to_s.chars.map(&:to_i)
end