From: fREW Schmidt Date: 2007-06-16T05:41:54+09:00 Subject: Facets Units. How do I use it? Hi all, I am trying to use the facet units and I am having no luck. If I do require 'facets' and I still can't use any for the unit examples on the facets site. So I tried to do require 'facet/units' and I get the following error ArgumentError: wrong number of arguments (0 for 1) from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:710:in `b' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:710:in `clean_eval' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:710:in `clean_eval' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:753:in `decode_conversion' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:572:in `register_unit' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:720:in `register_prefixed_unit' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:598:in `register_binary_unit' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:654:in `load_yaml' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:639:in `each' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:639:in `load_yaml' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:646:in `load_yaml' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:639:in `each' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:639:in `load_yaml' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:521:in `from_yaml' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:530:in `instance_eval' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:530:in `initialize' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:520:in `new' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:520:in `from_yaml' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:812 from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:811:in `each' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/units.rb:811 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from /usr/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facet/units.rb:1 from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in `require' Any ideas on what I am doing wrong? -- Posted via http://www.ruby-forum.com/.