module Pizzazz
Constants
- RAILS_AVAILABLE
- VERSION
Public Class Methods
ify(object, options = nil)
click to toggle source
# File lib/pizzazz.rb, line 10 def self.ify(object, options = nil) p = Colorer.new(object, options) p.ify end
ify_html(object, options = nil)
click to toggle source
# File lib/pizzazz/html.rb, line 2 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