module Fias
Constants
- ANNIVESARIES
- FEDERAL_CITIES
- INITIAL
- INITIALS
- LETTERS
- SINGLE_INITIAL
- VERSION
Attributes
config[R]
Public Class Methods
configure(&block)
click to toggle source
# File lib/fias.rb, line 5 def configure(&block) @config = Config.new(&block) end
indivisible_words()
click to toggle source
# File lib/fias.rb, line 9 def indivisible_words @indivisible_words ||= config .synonyms .flatten .find_all { |w| w.include?(' ') } .sort_by(&:size) .reverse .freeze end
word()
click to toggle source
# File lib/fias.rb, line 20 def word @word ||= /(#{ANNIVESARIES}|#{indivisible_words.join('|')}|[#{LETTERS}\"\'\d\.\)\(\/\-]+)(\s|\,|$)/ui end