Class: GreenPepper::BlankStringType

Inherits:
TypeBase
  • Object
show all
Defined in:
lib/greenpepper/converter.rb

Class Method Summary collapse

Methods inherited from TypeBase

can_parse?, inherited

Class Method Details

.convertObject



182
183
184
185
186
# File 'lib/greenpepper/converter.rb', line 182

def self.convert
  Proc.new{ |s| 
    "" 
  }
end

.formatObject



188
189
190
191
192
# File 'lib/greenpepper/converter.rb', line 188

def self.format
  Proc.new{ |s,expected_format| 
    expected_format
  }
end

.regexObject



178
179
180
# File 'lib/greenpepper/converter.rb', line 178

def self.regex
  /^\s*blank\s*$/i
end