From: JZ Date: 2005-07-15T23:05:53+09:00 Subject: Re: to_i() bug? Dnia Fri, 15 Jul 2005 22:10:00 +0900, Paul Brannan napisa�(a): > The Integer() and Float() methods are available if you want to validate > your data, but in 1.8.x, Integer() does not take a base as an argument. I need the base. I used another way. This is my code I had to prepare: def bases(n, min=2) result = [] n.split(//).each do |c| pos = "0123456789abcdef".index(c) min = pos+1 if min <= pos end min.upto(16) { |base| result << [base, n.to_i(base)] } return result end p bases('10a') > It is unfortunate that the interface for these methods is not > self-documenting. I really like pythonic docstring idea. Very comfortable and simple way for adding documentation to classes, methods etc. Is there any equivalent of http://python.org/peps/ for Ruby? How Ruby is developed? -- JZ