Method: Slideshow::DebugFilter#dump_content_to_file_debug_text
- Defined in:
- lib/slideshow/filters/debug_filter.rb
#dump_content_to_file_debug_text(content) ⇒ Object
use it to dump content before text-to-html conversion
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/slideshow/filters/debug_filter.rb', line 50 def dump_content_to_file_debug_text( content ) # NB: using attribs from mixed in class # - opts # - outdir return content unless config.verbose? outname = "#{outdir}/#{@name}.debug.text" puts " Dumping content before text-to-html conversion to #{outname}..." File.open( outname, 'w' ) do |f| f.write( content ) end content end |