Module: ConvenientGrouper

Defined in:
lib/convenient_grouper.rb,
lib/convenient_grouper/error.rb,
lib/convenient_grouper/regex.rb,
lib/convenient_grouper/version.rb,
lib/convenient_grouper/hash_converter.rb

Defined Under Namespace

Modules: Regex Classes: Error, HashConverter

Constant Summary collapse

VERSION =
"0.1.6"

Class Method Summary collapse

Class Method Details

.preliminaries(hash_arg, opts) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/convenient_grouper.rb', line 8

def preliminaries(hash_arg, opts)
  hc = get_hash_converter(hash_arg, opts)

  {
    groups: get_groups(hc, hash_arg),
    restrictions: get_restrictions(hc)
  }
end