Module: TOMLP
Defined Under Namespace
Classes: Parser
Constant Summary collapse
- VERSION =
"0.0.1"
Instance Method Summary collapse
-
#load(filename) ⇒ Object
Public: Parse the contents of the file that is passed as arguement.
-
#parse(content) ⇒ Object
Public: Parse the text passed as arguement.
Instance Method Details
#load(filename) ⇒ Object
Public: Parse the contents of the file that is passed as arguement
filename - A String containing the filename that needs to be parsed
Returns the parsed Data Structure
23 24 25 26 |
# File 'lib/tomlp.rb', line 23 def load(filename) file_content = File.open(filename).read TOMLP::Parser.new(file_content).parse end |