Class: GreenPepper::ListOfExampleFactory
- Inherits:
-
CollectionExampleFactory
- Object
- ExampleFactory
- CollectionExampleFactory
- GreenPepper::ListOfExampleFactory
- Defined in:
- lib/greenpepper/factory/collectionexamplefactory.rb
Instance Method Summary collapse
Methods inherited from CollectionExampleFactory
Methods inherited from ExampleFactory
Instance Method Details
#do_create_example(fixture_name) ⇒ Object
25 26 27 |
# File 'lib/greenpepper/factory/collectionexamplefactory.rb', line 25 def do_create_example(fixture_name) ListOfExample.new fixture_name end |
#support?(table) ⇒ Boolean
21 22 23 |
# File 'lib/greenpepper/factory/collectionexamplefactory.rb', line 21 def support?(table) /^\s*List\s*Of\s*$/i === table[0][0] end |