Class: GreenPepper::IntType
- Defined in:
- lib/greenpepper/converter.rb
Class Method Summary collapse
Methods inherited from TypeBase
Class Method Details
.convert ⇒ Object
120 121 122 |
# File 'lib/greenpepper/converter.rb', line 120 def self.convert Proc.new{|s| s.to_i} end |
.regex ⇒ Object
116 117 118 |
# File 'lib/greenpepper/converter.rb', line 116 def self.regex /^\s*-?[0-9]+\s*$/ end |