Method: UKPostcode::GiroPostcode.parse

Defined in:
lib/uk_postcode/giro_postcode.rb

.parse(str) ⇒ Object

Returns an instance of GiroPostcode if str represents GIR 0AA, and nil otherwise.



20
21
22
# File 'lib/uk_postcode/giro_postcode.rb', line 20

def self.parse(str)
  PATTERN.match(str.strip) ? instance : nil
end