Module: TOML

Defined in:
lib/toml.rb,
lib/toml/key.rb,
lib/toml/table.rb,
lib/toml/parser.rb,
lib/toml/parslet.rb,
lib/toml/version.rb,
lib/toml/generator.rb,
lib/toml/transformer.rb

Overview

require ‘toml/monkey_patch

Defined Under Namespace

Classes: Generator, Key, Parser, Parslet, Table, TableArray, Transformer

Constant Summary collapse

VERSION =
'0.3.0'

Class Method Summary collapse

Class Method Details

.load(content) ⇒ Object



18
19
20
# File 'lib/toml.rb', line 18

def self.load(content)
  Parser.new(content).parsed
end

.load_file(path) ⇒ Object



22
23
24
# File 'lib/toml.rb', line 22

def self.load_file(path)
  Parser.new(File.read(path)).parsed
end