lib/berkeley_library/tind/mapping/single_rule.rb
# 1. Return an array of combined rules, an item in the array
#    is an array of rules which have the same 'to subfield name'
# 2. An example: [[["a,b,c,d", "b", "--"],["o,p,q", "b", ""]],[["x,y,z", "a", "--"]]]
1. Return an array of combined rules, an item in the array
is an array of rules which have the same 'to subfield name'
2.
1 . Return an array of combined rules an item in the array is an array of rules which have the same ' to subfield name ' 2 .
def rules_with_same_subfield_name(row)
          rules = all_combined_rules(row)
          identical_to_subfield_names = unique_tosubfield_names(rules)
          identical_to_subfield_names.each_with_object([]) do |name, result|
            result << rules_with_sametosubfield(name, rules)
          end
        end
def rules_with_same_subfield_name ( row ) rules = all_combined_rules ( row ) identical_to_subfield_names = unique_tosubfield_names ( rules ) identical_to_subfield_names . each_with_object ( [ ] ) do | name , result | result << rules_with_sametosubfield ( name , rules ) end end
1.
1 .
row
<not_specific>