Set length, size and empty?
require 'set' s = Set[2, 3, 5] p s.length # => 3 p s.size # => 3: a synonym for length p s.empty? # => false p Set.new.empty? # => true