From: Sarah Allen Date: 2009-03-02T19:44:14+09:00 Subject: Re: passing a method as a paramter Wow. Awesome run through of various Ruby syntax options -- I think I'll print that out and hang it on my wall. Oddly none of those match the original definition which uses send but has just a single "creation_method" parameter... >>  #  assert_required_fields :create_article, :subject, :body, :author >>  def assert_required_fields(creation_method, *field_names) >>    field_names.each do |field| >>      record = send(creation_method, field => nil) >>      assert_equal false, record.valid? >>      assert_not_nil record.errors.on(field) >>    end >>  end Any thoughts on how that could be called? Thanks, Sarah -- Posted via http://www.ruby-forum.com/.