Sha256: c7b5d87dd5c7b774a7ca5601004416fb1714a088ee4dc877c2f99afdae20a70a
Contents?: true
Size: 592 Bytes
Versions: 1
Compression:
Stored size: 592 Bytes
Contents
require 'rubygems' require 'ruby_parser' require 'erb' module Simplabs module Excellent module Parsing class Parser #:nodoc: def parse(content, filename) return silent_parse(content, filename) rescue Exception #continue on errors end private def silent_parse(content, filename) @parser ||= RubyParser.new content = ::ERB.new(content, nil, '-').src if filename =~ /\.erb$/ sexp = @parser.parse(content, filename) sexp end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
excellent-1.6.0 | lib/simplabs/excellent/parsing/parser.rb |