On Sat, Sep 15, 2007 at 01:24:22PM +0900, ara.t.howard wrote: > > On Sep 14, 2007, at 9:36 PM, Morton Goldberg wrote: > > >Surely, the last line above contains a typo. Shouldn't it be > > > >> p a['zero'] #=> 42 > > > >Regards, Morton > > > > therein lies the problem with writing documentation ;-) > > if you check most of my new stuff the examples generate the README > for exactly the reason that i have fat fingers ;-) > > thx. Bug for you... % cat af-bug.rb require 'rubygems' require 'arrayfields' puts "ruby version : #{RUBY_VERSION}" puts "gems version : #{Gem::RubyGemsVersion}" puts "arrayfields version : #{ArrayFields::VERSION}" require 'rake' puts 42 % ruby af-bug.rb ruby version : 1.8.6 gems version : 0.9.2 arrayfields version : 4.1.0 /opt/local/lib/ruby/gems/1.8/gems/arrayfields-4.1.0/lib/arrayfields.rb:28:in `initialize': <nil> not inject-able (ArgumentError) from /opt/local/lib/ruby/gems/1.8/gems/arrayfields-4.1.0/lib/arrayfields.rb:16:in `new' from /opt/local/lib/ruby/gems/1.8/gems/arrayfields-4.1.0/lib/arrayfields.rb:16:in `new' from /opt/local/lib/ruby/gems/1.8/gems/arrayfields-4.1.0/lib/arrayfields.rb:286:in `fields=' from /opt/local/lib/ruby/gems/1.8/gems/arrayfields-4.1.0/lib/arrayfields.rb:305:in `dup' from /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1304 from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require' from af-bug.rb:6 Order matters, require 'rake' before arrayfields and there is no error. enjoy, -jeremy -- ======================================================================== Jeremy Hinegardner jeremy / hinegardner.org