class Git::Approvals::UglifierFormatter
Public Class Methods
engine_initialized?()
click to toggle source
# File lib/git/approvals/uglifier_formatter.rb, line 7 def self.engine_initialized? defined?(::Uglifier) end
Public Instance Methods
evaluate( context, locals, &block )
click to toggle source
# File lib/git/approvals/uglifier_formatter.rb, line 18 def evaluate( context, locals, &block ) # TODO use locals as options to the formatter ::Uglifier.compile context, :output => { :beautify => true, :indent_level => 2, :comments => :all, :space_colon => true } end
initialize_engine()
click to toggle source
# File lib/git/approvals/uglifier_formatter.rb, line 11 def initialize_engine require_template_library 'uglifier' end
prepare()
click to toggle source
# File lib/git/approvals/uglifier_formatter.rb, line 15 def prepare end