ruby/attributes/ruby: fix a bug