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



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

def load_rake_tasks
end

#loadfilesObject



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

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

#nameObject



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.expand_path(File.join File.dirname(__FILE__), name)
end

#setup(ns) ⇒ Object



29
30
31
32
# File 'lib/nydp/html.rb', line 29

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



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

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