Class: RDoc::Generator::Railsfish
- Inherits:
-
Darkfish
- Object
- Darkfish
- RDoc::Generator::Railsfish
- Defined in:
- lib/rdoc_rails/rdoc/generator/railsfish.rb
Constant Summary collapse
- VERSION =
'0.1.0'
Instance Method Summary collapse
-
#generate_class_files ⇒ Object
Overriding to allow setting templatefile to my Rails customized version.
-
#initialize(opts) ⇒ Railsfish
constructor
Override template path to use standard darkfish template for most pages.
Constructor Details
#initialize(opts) ⇒ Railsfish
Override template path to use standard darkfish template for most pages
7 8 9 10 |
# File 'lib/rdoc_rails/rdoc/generator/railsfish.rb', line 7 def initialize(opts) opts.instance_variable_set(:@template, 'darkfish') if opts.template == 'railsfish' super end |
Instance Method Details
#generate_class_files ⇒ Object
Overriding to allow setting templatefile to my Rails customized version.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/rdoc_rails/rdoc/generator/railsfish.rb', line 13 def generate_class_files debug_msg "Generating class documentation in #@outputdir" templatefile = Pathname.new(File.dirname(__FILE__) + '/template/railsfish/classpage.rhtml') @classes.each do |klass| debug_msg " working on %s (%s)" % [ klass.full_name, klass.path ] outfile = @outputdir + klass.path rel_prefix = @outputdir.relative_path_from( outfile.dirname ) svninfo = self.get_svninfo( klass ) debug_msg " rendering #{outfile}" self.render_template( templatefile, binding(), outfile ) end end |