Ruby Newbie homepage Ruby Newbie homepage

How to use

Quick guide

Official content
Since int is already an Integer, returns self.
to_int is an alias for to_i.
 
               # File numeric.rb, line 210
def to_i
  return self
end
            

Was this page useful?