From: Roberto Casadei Date: 2008-03-19T15:38:58+09:00 Subject: Undefined method '<' for nil:NilClasse This is the code: class StringScanner @str = "" @kounter = 0 def initialize(str) @str = str end def scan(arg) res = @str.scan(arg) return nil unless @kounter