Class: Haute::Parser
Class Method Summary collapse
Class Method Details
.parse(content) ⇒ Object
12 13 14 |
# File 'lib/haute/parser.rb', line 12 def parse(content) Haute::ColorBlock.parse(content) end |
.parse_file(path) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/haute/parser.rb', line 4 def parse_file(path) if File.exists?(path) parse(File.read(path)) else raise "Unable to read file #{path}" end end |