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
# File 'lib/nydp/html.rb', line 20

def loadfiles
  Dir.glob(relative_path '../lisp/html-*.nydp').sort
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



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