- IPV4_OCTET_COUNT =
4
- IPV6_OCTET_COUNT =
8
- IPV6_PADDING_OCTECT =
'0'.freeze
- IPV4_DIVISOR =
16
- IPV6_DIVISOR =
256
- DIVISORS =
{
ipv4: IPV4_DIVISOR,
ipv6: IPV6_DIVISOR,
}.freeze
- PLACEHOLDER_OCTET =
'OCTET'
- NEW_LINE =
"\n".freeze
- PERIOD =
'.'.freeze
- SPACE =
' '.freeze
- FILLER_WORDS =
%w[in the and].freeze
- NON_WORDS =
[NEW_LINE, PERIOD, SPACE].freeze
- IPV4_HAIKU_STRUCTURE =
[
Dictionary::ANIMAL_ADJECTIVES,
Dictionary::ANIMAL_COLORS,
Dictionary::ANIMAL_NOUNS,
Dictionary::ANIMAL_VERBS,
Dictionary::NATURE_ADJECTIVES,
Dictionary::NATURE_NOUNS,
Dictionary::PLANT_NOUNS,
Dictionary::PLANT_VERBS,
].freeze
- IPV6_HAIKU_STRUCTURE =
[
Dictionary::ADJECTIVES,
Dictionary::NOUNS,
Dictionary::ADJECTIVES,
Dictionary::NOUNS,
Dictionary::VERBS,
Dictionary::ADJECTIVES,
Dictionary::ADJECTIVES,
Dictionary::ADJECTIVES,
Dictionary::ADJECTIVES,
Dictionary::ADJECTIVES,
Dictionary::NOUNS,
Dictionary::ADJECTIVES,
Dictionary::NOUNS,
Dictionary::VERBS,
Dictionary::ADJECTIVES,
Dictionary::NOUNS,
].freeze
- HAIKU_STRUCTURE =
{
ipv4: IPV4_HAIKU_STRUCTURE,
ipv6: IPV6_HAIKU_STRUCTURE,
}.freeze
- IPV4_SCHEMA =
[
'The',
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
NEW_LINE,
PLACEHOLDER_OCTET,
'in the',
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
PERIOD,
NEW_LINE,
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
PERIOD,
NEW_LINE,
].freeze
- IPV6_SCHEMA =
[
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
'and',
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
NEW_LINE,
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
PERIOD,
NEW_LINE,
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
PLACEHOLDER_OCTET,
PERIOD,
NEW_LINE,
].freeze
- SCHEMA =
{
ipv4: IPV4_SCHEMA,
ipv6: IPV6_SCHEMA,
}.freeze
- VERSION =
'1.1.1'