class Rocco

def pygmentize?

Returns `true` if `pygmentize` is available locally, `false` otherwise.
def pygmentize?
  @_pygmentize ||= ENV['PATH'].split(':').
    any? { |dir| File.executable?("#{dir}/pygmentize") }
end