Class: Nydp::Html::Plugin

Inherits:
Object
  • Object
show all
Defined in:
lib/nydp/html.rb

Instance Method Summary collapse

Instance Method Details

#load_rake_tasksObject



16
17
# File 'lib/nydp/html.rb', line 16

def load_rake_tasks
end

#loadfilesObject



19
20
21
22
# File 'lib/nydp/html.rb', line 19

def loadfiles
  b = relative_path('../lisp/to-html.nydp')
  [b]
end

#nameObject



10
# File 'lib/nydp/html.rb', line 10

def name ; "Nydp/HTML plugin" ; end

#relative_path(name) ⇒ Object



12
13
14
# File 'lib/nydp/html.rb', line 12

def relative_path name
  File.expand_path(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

#testfilesObject



24
25
26
# File 'lib/nydp/html.rb', line 24

def testfiles
  Dir.glob(relative_path '../lisp/tests/**/*.nydp')
end