From 0f90ad75de04a3620c02693ee6375b5b3b628cb9 Mon Sep 17 00:00:00 2001 From: Gregory Brown Date: Thu, 6 Mar 2014 15:13:01 -0500 Subject: [PATCH] Don't prevent Table::Cell from being documented --- .yardopts | 1 - lib/prawn/table.rb | 2 +- lib/prawn/table/cell.rb | 1 - lib/prawn/table/cell/in_table.rb | 2 +- lib/prawn/table/cell/subtable.rb | 1 + lib/prawn/table/cell/text.rb | 1 + 6 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.yardopts b/.yardopts index 869d9f5f4..8525a9936 100644 --- a/.yardopts +++ b/.yardopts @@ -2,7 +2,6 @@ --main README.md --title 'Prawn Documentation' --no-private -lib/prawn/**/*.rb - CONTRIBUTING.md COPYING diff --git a/lib/prawn/table.rb b/lib/prawn/table.rb index f3129840c..8331c6363 100644 --- a/lib/prawn/table.rb +++ b/lib/prawn/table.rb @@ -7,8 +7,8 @@ # This is free software. Please see the LICENSE and COPYING files for details. require_relative 'table/column_width_calculator' -require_relative 'table/cells' require_relative 'table/cell' +require_relative 'table/cells' require_relative 'table/cell/in_table' require_relative 'table/cell/text' require_relative 'table/cell/subtable' diff --git a/lib/prawn/table/cell.rb b/lib/prawn/table/cell.rb index 485ba6044..6331df012 100644 --- a/lib/prawn/table/cell.rb +++ b/lib/prawn/table/cell.rb @@ -153,7 +153,6 @@ def max_width # this span group. They know their own width / height, but do not draw # anything. # - # @private attr_reader :dummy_cells # Instantiates a Cell based on the given options. The particular class of diff --git a/lib/prawn/table/cell/in_table.rb b/lib/prawn/table/cell/in_table.rb index f1d67cce1..e426f011c 100644 --- a/lib/prawn/table/cell/in_table.rb +++ b/lib/prawn/table/cell/in_table.rb @@ -9,13 +9,13 @@ module Prawn class Table - # @private class Cell # This module extends Cell objects when they are used in a table (as # opposed to standalone). Its properties apply to cells-in-tables but not # cells themselves. # + # @private module InTable # Row number (0-based). diff --git a/lib/prawn/table/cell/subtable.rb b/lib/prawn/table/cell/subtable.rb index 4403db995..b5c247077 100644 --- a/lib/prawn/table/cell/subtable.rb +++ b/lib/prawn/table/cell/subtable.rb @@ -11,6 +11,7 @@ class Cell # A Cell that contains another table. # + # @private class Subtable < Cell attr_reader :subtable diff --git a/lib/prawn/table/cell/text.rb b/lib/prawn/table/cell/text.rb index 2a2f37d6b..4fed7dd27 100644 --- a/lib/prawn/table/cell/text.rb +++ b/lib/prawn/table/cell/text.rb @@ -12,6 +12,7 @@ class Cell # A Cell that contains text. Has some limited options to set font family, # size, and style. # + # @private class Text < Cell TextOptions = [:inline_format, :kerning, :size, :align, :valign,