Class: RushCheck::TestOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/rushcheck/testoptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lengthObject (readonly)

Returns the value of attribute length.



8
9
10
# File 'lib/rushcheck/testoptions.rb', line 8

def length
  @length
end

#ntestsObject (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

Returns:

  • (Boolean)


13
14
15
# File 'lib/rushcheck/testoptions.rb', line 13

def debug?
  @debug
end