Changeset 655
- Timestamp:
- 03/30/07 11:51:22 (2 years ago)
- Files:
-
- ruport (added)
- ruport/branches (moved) (moved from branches)
- ruport/branches/stable (copied) (copied from branches/stable)
- ruport/tags (moved) (moved from tags)
- ruport/tags/rel_0_3_8 (copied) (copied from tags/rel_0_3_8)
- ruport/tags/rel_0_4_0 (copied) (copied from tags/rel_0_4_0)
- ruport/tags/rel_0_4_11 (copied) (copied from tags/rel_0_4_11)
- ruport/tags/rel_0_4_13 (copied) (copied from tags/rel_0_4_13)
- ruport/tags/rel_0_4_17 (copied) (copied from tags/rel_0_4_17)
- ruport/tags/rel_0_4_19 (copied) (copied from tags/rel_0_4_19)
- ruport/tags/rel_0_4_21 (copied) (copied from tags/rel_0_4_21)
- ruport/tags/rel_0_4_23 (copied) (copied from tags/rel_0_4_23)
- ruport/tags/rel_0_4_4 (copied) (copied from tags/rel_0_4_4)
- ruport/tags/rel_0_4_5 (copied) (copied from tags/rel_0_4_5)
- ruport/tags/rel_0_4_9 (copied) (copied from tags/rel_0_4_9)
- ruport/tags/rel_0_4_99 (copied) (copied from tags/rel_0_4_99)
- ruport/tags/rel_0_5_0 (copied) (copied from tags/rel_0_5_0)
- ruport/tags/rel_0_5_2 (copied) (copied from tags/rel_0_5_2)
- ruport/tags/rel_0_5_3 (copied) (copied from tags/rel_0_5_3)
- ruport/tags/rel_0_5_4 (copied) (copied from tags/rel_0_5_4)
- ruport/tags/rel_0_5_final (copied) (copied from tags/rel_0_5_final)
- ruport/tags/rel_0_6_0 (copied) (copied from tags/rel_0_6_0)
- ruport/tags/rel_0_6_1 (copied) (copied from tags/rel_0_6_1)
- ruport/tags/rel_0_6_final (copied) (copied from tags/rel_0_6_final)
- ruport/tags/rel_0_7_0 (copied) (copied from tags/rel_0_7_0)
- ruport/tags/rel_0_7_1 (copied) (copied from tags/rel_0_7_1)
- ruport/tags/rel_0_7_2 (copied) (copied from tags/rel_0_7_2)
- ruport/tags/rel_0_7_final (copied) (copied from tags/rel_0_7_final)
- ruport/tags/rel_0_8_0 (copied) (copied from tags/rel_0_8_0)
- ruport/tags/rel_0_8_1 (copied) (copied from tags/rel_0_8_1)
- ruport/tags/rel_0_8_10 (copied) (copied from tags/rel_0_8_10)
- ruport/tags/rel_0_8_11 (copied) (copied from tags/rel_0_8_11)
- ruport/tags/rel_0_8_12 (copied) (copied from tags/rel_0_8_12)
- ruport/tags/rel_0_8_2 (copied) (copied from tags/rel_0_8_2)
- ruport/tags/rel_0_9_0 (copied) (copied from tags/rel_0_9_0)
- ruport/tags/rel_0_9_1 (copied) (copied from tags/rel_0_9_1)
- ruport/tags/rel_0_9_2 (copied) (copied from tags/rel_0_9_2)
- ruport/trunk (moved) (moved from trunk)
- ruport/trunk/AUTHORS (copied) (copied from trunk/AUTHORS)
- ruport/trunk/COPYING (copied) (copied from trunk/COPYING)
- ruport/trunk/HACKING (copied) (copied from trunk/HACKING)
- ruport/trunk/LICENSE (copied) (copied from trunk/LICENSE)
- ruport/trunk/README (copied) (copied from trunk/README)
- ruport/trunk/Rakefile (copied) (copied from trunk/Rakefile)
- ruport/trunk/TODO (copied) (copied from trunk/TODO)
- ruport/trunk/bin (copied) (copied from trunk/bin)
- ruport/trunk/doc (copied) (copied from trunk/doc)
- ruport/trunk/examples (copied) (copied from trunk/examples)
- ruport/trunk/lib (copied) (copied from trunk/lib)
- ruport/trunk/lib/ruport/data/table.rb (modified) (1 diff)
- ruport/trunk/setup.rb (copied) (copied from trunk/setup.rb)
- ruport/trunk/test (copied) (copied from trunk/test)
- ruport/trunk/test/test_table.rb (modified) (1 diff)
- ruport/trunk/util (copied) (copied from trunk/util)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ruport/trunk/lib/ruport/data/table.rb
r649 r655 25 25 # 26 26 def as(*args) 27 unless Ruport::Renderer::Table.formats.include?(args[0]) 28 raise ArgumentError 29 end 27 30 Ruport::Renderer::Table.render(*args) do |rend| 28 31 rend.data = self ruport/trunk/test/test_table.rb
r628 r655 416 416 :data => [[1,2],[3,4],[5,6]] 417 417 assert_equal("a,b\n1,2\n3,4\n5,6\n",table.to_csv) 418 assert_raises(ArgumentError) { table.to_nothing } 418 419 end 419 420
