lib/phony/dsl.rb
# Matches on the rest of the number and splits according
# to the given value for the regexp key.
#
# Options:
#   * fallback A fallback amount of group sizes in case it doesn't match.
#
# Example:
#   country '47',
#     none >> matched_split(/^[1].*$/   => [3],
#                           /^[489].*$/ => [3,2,3],
#                           :fallback   => [2,2,2,2])
#
Matches on the rest of the number and splits according
to the given value for the regexp key.

fallback A fallback amount of group sizes in case it doesn't match.


Matches on the rest of the number and splits according to the given value for the regexp key . fallback A fallback amount of group sizes in case it doesn ' t match .
def matched_split options = {}
      Phony::LocalSplitters::Regex.instance_for options
    end
def matched_split options = { } Phony :: LocalSplitters :: Regex . instance_for options end
Matches on the rest of the number and splits according
to the given value for the regexp key.
Matches on the rest of the number and splits according to the given value for the regexp key .
# # TODO: Refactor: it's a workaround. It creates high coupling with Phony::LocalSplitters::Regex. # options.each do |_, format| #   format << format.pop + 10 # end
options