Exception: RBS::Test::SetupHelper::InvalidSampleSizeError
- Inherits:
-
StandardError
- Object
- StandardError
- RBS::Test::SetupHelper::InvalidSampleSizeError
- Defined in:
- lib/rbs/test/setup_helper.rb
Instance Attribute Summary collapse
-
#string ⇒ Object
readonly
Returns the value of attribute string.
Instance Method Summary collapse
-
#initialize(string) ⇒ InvalidSampleSizeError
constructor
A new instance of InvalidSampleSizeError.
Constructor Details
#initialize(string) ⇒ InvalidSampleSizeError
Returns a new instance of InvalidSampleSizeError.
9 10 11 12 |
# File 'lib/rbs/test/setup_helper.rb', line 9 def initialize(string) @string = string super("Sample size should be a positive integer: `#{string}`") end |
Instance Attribute Details
#string ⇒ Object (readonly)
Returns the value of attribute string.
7 8 9 |
# File 'lib/rbs/test/setup_helper.rb', line 7 def string @string end |