Class: GreenPepper::CollectionExampleFactory
- Inherits:
-
ExampleFactory
- Object
- ExampleFactory
- GreenPepper::CollectionExampleFactory
- Defined in:
- lib/greenpepper/factory/collectionexamplefactory.rb
Direct Known Subclasses
ListOfExampleFactory, SetOfExampleFactory, SubsetOfExampleFactory, SupersetOfExampleFactory
Instance Method Summary collapse
Methods inherited from ExampleFactory
Instance Method Details
#create_example(table) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/greenpepper/factory/collectionexamplefactory.rb', line 12 def create_example(table) ex = do_create_example table[0][1] table[1].each{|header| ex.add_header header} table[2..-1].each{|row| ex.add_row row} ex end |