Class: RushCheck::TestOptions
- Inherits:
-
Object
- Object
- RushCheck::TestOptions
- Defined in:
- lib/rushcheck/testoptions.rb
Instance Attribute Summary collapse
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#ntests ⇒ Object
readonly
Returns the value of attribute ntests.
Instance Method Summary collapse
- #debug? ⇒ Boolean
-
#initialize(ntests = 100, length = 1, debug = false) ⇒ TestOptions
constructor
A new instance of TestOptions.
Constructor Details
#initialize(ntests = 100, length = 1, debug = false) ⇒ TestOptions
Returns a new instance of TestOptions.
9 10 11 |
# File 'lib/rushcheck/testoptions.rb', line 9 def initialize(ntests=100, length=1, debug=false) @ntests, @length, @debug = ntests, length, debug end |
Instance Attribute Details
#length ⇒ Object (readonly)
Returns the value of attribute length.
8 9 10 |
# File 'lib/rushcheck/testoptions.rb', line 8 def length @length end |
#ntests ⇒ Object (readonly)
Returns the value of attribute ntests.
8 9 10 |
# File 'lib/rushcheck/testoptions.rb', line 8 def ntests @ntests end |
Instance Method Details
#debug? ⇒ Boolean
13 14 15 |
# File 'lib/rushcheck/testoptions.rb', line 13 def debug? @debug end |