Class: TypedParameter::Constraints::IntegerConstraint

Inherits:
Base
  • Object
show all
Defined in:
lib/typed_parameter/constraints/integer_constraint.rb

Class Method Summary collapse

Class Method Details

.value(value) ⇒ Object



6
7
8
# File 'lib/typed_parameter/constraints/integer_constraint.rb', line 6

def self.value(value)
  value.to_i
end