class Ferrum::Keyboard
def combine_strings(keys)
def combine_strings(keys) keys .chunk { |k| k.is_a?(String) } .map { |s, k| s ? [k.reduce(&:+)] : k } .reduce(&:+) end
def combine_strings(keys) keys .chunk { |k| k.is_a?(String) } .map { |s, k| s ? [k.reduce(&:+)] : k } .reduce(&:+) end