Module: EasyType::Validators::Integer
- Defined in:
- lib/easy_type/validators.rb
Overview
Instance Method Summary (collapse)
Instance Method Details
- (Object) unsafe_validate(value)
44 45 46 |
# File 'lib/easy_type/validators.rb', line 44 def unsafe_validate(value) raise Puppet::Error, "Invalid integer value: #{value}" if value =~ /^\d+$/ end |