Module: Dryml::DrymlDoc
- Defined in:
- lib/dryml/dryml_doc.rb
Overview
DrymlDoc provides the facility to parse a directory tree of DRYML taglibs, building a collection of objects that provide metadata
Defined Under Namespace
Constant Summary collapse
- CommentMethods =
classy_module do def comment_intro comment && comment =~ /(.*?)^#/m ? $1 : comment end def comment_rest comment && comment[comment_intro.length..-1] end %w(comment comment_intro comment_rest).each do |m| class_eval "def #{m}_html; Maruku.new(#{m}).to_html.gsub(/&/, '&'); end" end end
Class Method Summary collapse
Class Method Details
.load_taglibs(directory, taglib_class = DrymlDoc::Taglib) ⇒ Object
8 9 10 11 12 |
# File 'lib/dryml/dryml_doc.rb', line 8 def self.load_taglibs(directory, taglib_class=DrymlDoc::Taglib) dryml_files = Dir["#{directory}/**/*.dryml"] dryml_files.map { |f| taglib_class.new(directory, f) } end |