Module: DotStrings

Defined in:
lib/dotstrings.rb,
lib/dotstrings/file.rb,
lib/dotstrings/item.rb,
lib/dotstrings/errors.rb,
lib/dotstrings/parser.rb,
lib/dotstrings/version.rb

Defined Under Namespace

Classes: File, Item, Parser, ParsingError

Constant Summary collapse

VERSION =
'0.3.0'

Class Method Summary collapse

Class Method Details

.parse(io) ⇒ DotStrings::File

Parses a file from the given IO object.

This is a convenience method for DotStrings::File.parse.

Parameters:

  • io (IO)

    The IO object to parse.

Returns:



16
17
18
# File 'lib/dotstrings.rb', line 16

def self.parse(io)
  File.parse(io)
end

.parse_file(path) ⇒ DotStrings::File

Parses a .strings file at the given path.

This is a convenience method for DotStrings::File.parse_file.

Parameters:

  • path (String)

    The path to the .strings file to parse.

Returns:



27
28
29
# File 'lib/dotstrings.rb', line 27

def self.parse_file(path)
  File.parse_file(path)
end