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.



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

#stringObject (readonly)

Returns the value of attribute string.



7
8
9
# File 'lib/rbs/test/setup_helper.rb', line 7

def string
  @string
end