Module: Nanoc::Core::TomlLoader Private
- Defined in:
- lib/nanoc/core/toml_loader.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .load(string) ⇒ Object private
- .load_file(filename) ⇒ Object private
Class Method Details
.load(string) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 10 |
# File 'lib/nanoc/core/toml_loader.rb', line 7 def self.load(string) require 'perfect_toml' PerfectTOML.parse(string) end |
.load_file(filename) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 15 |
# File 'lib/nanoc/core/toml_loader.rb', line 12 def self.load_file(filename) require 'perfect_toml' load(File.read(filename)) end |