Browse files

Revert "Further RDoc cleanup"

This reverts commit 23554b3.
  • Loading branch information...
1 parent 43fadaf commit 8297c4e114d8be813f8754cd8198c941b292d01a @bradediger bradediger committed Oct 26, 2009
Showing with 6 additions and 6 deletions.
  1. +4 −4 lib/prawn/layout/grid.rb
  2. +2 −2 lib/prawn/table.rb
View
8 lib/prawn/layout/grid.rb
@@ -14,7 +14,6 @@ def define_grid(options = {})
# @pdf.grid # Get the Grid directly
# @pdf.grid([0,1]) # Get the box at [0,1]
# @pdf.grid([0,1], [1,2]) # Get a multi-box spanning from [0,1] to [1,2]
- #
def grid(*args)
@boxes ||= {}
@boxes[args] ||= if args.empty?
@@ -32,10 +31,10 @@ def grid(*args)
# A Grid represents the entire grid system of a Page and calculates the
# column width and row height of the base box.
- #
class Grid
attr_reader :pdf, :columns, :rows, :gutter, :row_gutter, :column_gutter
- def initialize(pdf, options = {}) # :nodoc:
+ # :nodoc
+ def initialize(pdf, options = {})
Prawn.verify_options([:columns, :rows, :gutter, :row_gutter, :column_gutter], options)
@pdf = pdf
@@ -98,7 +97,8 @@ def name
"#{@i.to_s},#{@j.to_s}"
end
- def total_height # :nodoc:
+ # :nodoc
+ def total_height
pdf.bounds.height.to_f
end
View
4 lib/prawn/table.rb
@@ -39,8 +39,8 @@ class Document
#
# end
#
- # Will raise <tt>Prawn::Errors::EmptyTable</tt> given
- # a nil or empty <tt>data</tt> paramater.
+ # Will raise <tt>Prawn::Errors::EmptyTable</tt> given
+ # a nil or empty <tt>data</tt> paramater.
#
def table(data, options={})
if data.nil? || data.empty?

0 comments on commit 8297c4e

Please sign in to comment.