class Git::Approvals::AwesomePrintFormatter

Public Class Methods

engine_initialized?() click to toggle source
# File lib/git/approvals/awesome_print_formatter.rb, line 7
def self.engine_initialized?
  defined?(::AwesomePrint)
end

Public Instance Methods

evaluate( context, locals, &block ) click to toggle source
# File lib/git/approvals/awesome_print_formatter.rb, line 18
def evaluate( context, locals, &block )
  # TODO use locals as options to the formatter
  # TODO require awesome_print/inspector to not pollute kernel, etc
  context.awesome_inspect \
    :plain  => true,
    :indent => -2
end
initialize_engine() click to toggle source
# File lib/git/approvals/awesome_print_formatter.rb, line 11
def initialize_engine
  require_template_library 'awesome_print'
end
prepare() click to toggle source
# File lib/git/approvals/awesome_print_formatter.rb, line 15
def prepare
end