Class: Addressing::PatternType

Inherits:
Enum
  • Object
show all
Defined in:
lib/addressing/pattern_type.rb

Overview

Enumerates available pattern types.

Determines whether regexes should match an entire string, or just a part of it. Used for postal code validation.

Constant Summary collapse

FULL =
"full"
START =
"start"

Class Method Summary collapse

Class Method Details

.defaultObject

Gets the default value.



13
14
15
16
# File 'lib/addressing/pattern_type.rb', line 13

def self.default
  # Most subdivisions define only partial patterns.
  START
end