Sha256: 2218bffc68669367fefec7b3e0e513c0e541a93ad584f9a60589ffeec8f64372
Contents?: true
Size: 232 Bytes
Versions: 3
Compression:
Stored size: 232 Bytes
Contents
module Rocx module Properties class IntegerProperty < ValueProperty def valid? value.is_a? Integer end def invalid_message "Invalid #{name}: must be an integer" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rocx-0.7.0 | lib/rocx/properties/integer_property.rb |
rocx-0.6.0 | lib/rocx/properties/integer_property.rb |
rocx-0.5.8 | lib/rocx/properties/integer_property.rb |