Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 13 lines (10 sloc) 0.375 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
require 'parser.rb'

puts "Parsing valid config file...\n"
config = MinimalDsl.load('valid_config.rb')
puts "appname: #{config.appname}\n"
puts "root-path: #{config.root_path}\n"
puts "images_path: #{config.images_path}\n"
puts "title: #{config.title}\n"

puts "\n\n";

puts "Parsing invalid config file...\n"
config = MinimalDsl.load('invalid_config.rb') # Will raise error
Something went wrong with that request. Please try again.