Class: Rescodegen::StringsKeyReader

Inherits:
Object
  • Object
show all
Defined in:
lib/rescodegen/key_reader/strings_key_reader.rb

Instance Method Summary collapse

Instance Method Details

#read_keys_from_lines(lines) ⇒ Object



6
7
8
9
10
# File 'lib/rescodegen/key_reader/strings_key_reader.rb', line 6

def read_keys_from_lines(lines)
    lines.map(&method(:encode_line_with_utf8))
    .select(&method(:line_contains_key))
    .map(&method(:extract_key))
end