Class: Nydp::Html::Plugin
- Inherits:
-
Object
- Object
- Nydp::Html::Plugin
- Defined in:
- lib/nydp/html.rb
Instance Method Summary collapse
- #load_rake_tasks ⇒ Object
- #loadfiles ⇒ Object
- #name ⇒ Object
- #relative_path(name) ⇒ Object
- #setup(ns) ⇒ Object
- #testfiles ⇒ Object
Instance Method Details
#load_rake_tasks ⇒ Object
17 18 |
# File 'lib/nydp/html.rb', line 17 def load_rake_tasks end |
#loadfiles ⇒ Object
20 21 22 |
# File 'lib/nydp/html.rb', line 20 def loadfiles Dir.glob(relative_path '../lisp/html-*.nydp').sort end |
#name ⇒ Object
11 |
# File 'lib/nydp/html.rb', line 11 def name ; "Nydp/HTML plugin" ; end |
#relative_path(name) ⇒ Object
13 14 15 |
# File 'lib/nydp/html.rb', line 13 def relative_path name File.(File.join File.dirname(__FILE__), name) end |
#setup(ns) ⇒ Object
28 29 30 31 |
# File 'lib/nydp/html.rb', line 28 def setup ns Symbol.mk("textile-to-html", ns).assign(Nydp::Html::TextileToHtml.new) Symbol.mk("haml-to-html", ns).assign(Nydp::Html::HamlToHtml.new) end |
#testfiles ⇒ Object
24 25 26 |
# File 'lib/nydp/html.rb', line 24 def testfiles Dir.glob(relative_path '../lisp/tests/**/*.nydp') end |