Exception: RBS::Test::SetupHelper::InvalidSampleSizeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rbs/test/setup_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#stringObject (readonly)

Returns the value of attribute string.



5
6
7
# File 'lib/rbs/test/setup_helper.rb', line 5

def string
  @string
end