Sha256: 028e891f4aa057d16f9d478c8a8d5c06f329fd2fae6cecb4b69755bd25be1517
Contents?: true
Size: 366 Bytes
Versions: 2
Compression:
Stored size: 366 Bytes
Contents
module Pizzazz def self.ify_html(object, options = nil) p = Colorer.new(object, options) class_name = 'pizzazz' if class_name_prefix = options[:class_name_prefix] class_name = class_name_prefix + class_name end html = %(<pre class="#{class_name}">#{p.ify}</pre>) html = html.html_safe if Pizzazz::RAILS_AVAILABLE html end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pizzazz-0.4.1 | lib/pizzazz/html.rb |
pizzazz-0.4.0 | lib/pizzazz/html.rb |