Permalink
Browse files

even more documentation for MediaWiki::Table

git-svn-id: svn://78.47.249.61/ruby-mediawiki/trunk@47 ba9c31aa-a806-0410-9a81-9f13d15ee83b
  • Loading branch information...
1 parent 69f8822 commit 066aba02e371fe3f88ed65b5ee229ed7f71f13f4 sven committed Jan 21, 2006
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/mediawiki/table.rb
View
@@ -9,8 +9,8 @@ module MediaWiki
class Table
##
# Initialize a Table instance
- # data:: [Array]
- # header:: [Array]
+ # data:: [Array] 2-dimensional Array with the tables and cells
+ # header:: [Array] 1-dimensional Array used as header
def initialize( data = [], header = [] )
@data = data
@header = header
@@ -36,7 +36,7 @@ def text
# Parses the wiki markup of a table and returns a 2-dimensional
# array representing rows and columns of the table. Currently only
# the mediawiki pipe syntax is supported.
- # text:: [String]
+ # text:: [String] String to parse
def self.parse( text )
table, row = nil, nil
text.each_line do | line |

0 comments on commit 066aba0

Please sign in to comment.