Class: Tapp::Printer::PrettyPrint

Inherits:
Base
  • Object
show all
Defined in:
lib/tapp/printer/pretty_print.rb

Instance Method Summary collapse

Instance Method Details



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/tapp/printer/pretty_print.rb', line 5

def print(*args)
  require 'pp'

  self.class.class_eval do
    remove_method :print

    def print(*args)
      pp(*args)
    end
  end

  print(*args)
end