Class: GreenPepper::BlankStringType
- Defined in:
- lib/greenpepper/converter.rb
Class Method Summary collapse
Methods inherited from TypeBase
Class Method Details
.convert ⇒ Object
182 183 184 185 186 |
# File 'lib/greenpepper/converter.rb', line 182 def self.convert Proc.new{ |s| "" } end |
.format ⇒ Object
188 189 190 191 192 |
# File 'lib/greenpepper/converter.rb', line 188 def self.format Proc.new{ |s,expected_format| expected_format } end |
.regex ⇒ Object
178 179 180 |
# File 'lib/greenpepper/converter.rb', line 178 def self.regex /^\s*blank\s*$/i end |