Module: Apfel

Defined in:
lib/apfel.rb,
lib/apfel/line.rb,
lib/apfel/reader.rb,
lib/apfel/kv_pair.rb,
lib/apfel/version.rb,
lib/apfel/dot_strings_parser.rb,
lib/apfel/parsed_dot_strings.rb

Defined Under Namespace

Classes: DotStringsParser, KVPair, Line, ParsedDotStrings, Reader

Constant Summary collapse

VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.parse(file) ⇒ Object

Public module for parsing DotStrings files and returning a parsed dot strings object



8
9
10
11
# File 'lib/apfel.rb', line 8

def self.parse(file)
  file = read(file)
  DotStringsParser.new(file).parse_file
end

.read(file) ⇒ Object



13
14
15
# File 'lib/apfel.rb', line 13

def self.read(file)
  Reader.read(file)
end