From: Carlos Date: 2006-08-01T21:12:32+09:00 Subject: Re: class is converting fixnum to array!?! Stuart Brand wrote: > this is the full class and code to call it, it out puts fixnum then > array [...] > ldap.search( :base => treebase, :filter => filter ) do |entry| > > if "#{entry["samaccountname"]}" == "#{name}" then > return 1 > else > return 0 > end > > end What if you never enter that block, because ldap.search never found anything? Then the result of ldap.search will be returned, probably an empty array. --