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.
7 8 9 10 |
# File 'lib/rbs/test/setup_helper.rb', line 7 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.
5 6 7 |
# File 'lib/rbs/test/setup_helper.rb', line 5 def string @string end |