lib/calamum/doc_generator.rb in calamum-1.0.0 vs lib/calamum/doc_generator.rb in calamum-1.0.1
- old
+ new
@@ -1,14 +1,15 @@
class Calamum::DocGenerator
include ERB::Util
- attr_accessor :resources, :templaete, :name, :url
+ attr_accessor :resources, :template, :name, :url, :description
- def initialize(template, resources, name, url)
+ def initialize(template, resources, name, url, descr)
@template = template
@resources = resources
@name = name
@url = url
+ @description = descr
end
def render()
ERB.new(@template).result(binding)
end