Class: Testgen::PrototypeWithTests
- Inherits:
-
Prototype
- Object
- Prototype
- Testgen::PrototypeWithTests
- Defined in:
- lib/testgen/cli.rb
Instance Attribute Summary collapse
-
#tests ⇒ Object
readonly
The array of tests.
Instance Method Summary collapse
-
#add_tests(tests) ⇒ Object
add_tests( tests ).
-
#initialize ⇒ PrototypeWithTests
constructor
initialize().
Constructor Details
#initialize ⇒ PrototypeWithTests
initialize()
Initializes the object
13 14 15 16 17 18 |
# File 'lib/testgen/cli.rb', line 13 def initialize() # Initialize the base class super() # Create the array of tests @tests = [] end |
Instance Attribute Details
#tests ⇒ Object (readonly)
The array of tests
19 20 21 |
# File 'lib/testgen/cli.rb', line 19 def tests @tests end |
Instance Method Details
#add_tests(tests) ⇒ Object
add_tests( tests )
tests - An array of TestData objects
Adds an array of tests to the prototype
25 26 27 |
# File 'lib/testgen/cli.rb', line 25 def add_tests( tests ) tests.each { |test| @tests.push( test ); } end |