Class: GreenPepper::EmptyArrayType

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



294
295
296
# File 'lib/greenpepper/converter.rb', line 294

def self.convert
  Proc.new{ |s| [] }
end

.formatObject



298
299
300
301
302
# File 'lib/greenpepper/converter.rb', line 298

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

.regexObject



290
291
292
# File 'lib/greenpepper/converter.rb', line 290

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