Module: RubyPsigate::NumberValidationMethods

Included in:
Item
Defined in:
lib/ruby_psigate/number_validation_methods.rb

Instance Method Summary collapse

Instance Method Details

#validate(number) ⇒ Object

Raises:



6
7
8
9
# File 'lib/ruby_psigate/number_validation_methods.rb', line 6

def validate(number)
  raise NumberLessThanZero if number < 0
  return number
end