Sha256: 9f536c878f344046412df72e241c02efecdb0290ddf0b0cd986da514517eeba8
Contents?: true
Size: 641 Bytes
Versions: 1
Compression:
Stored size: 641 Bytes
Contents
require 'tapp' require 'tapp/printer' require 'amazing_print' # Module to define own Tapp printer module Tapp::Printer # Custom AmazingPrint based printer for Tapp class AmazingPrint < Base # Prints the object using custom (AmazingPrint) printer # # @param [Object, Array] *args arbitrary Object to print # # @return [nil] prints to IO, returns nothing def print(*args) ap *args end end register :amazing_print, AmazingPrint end # Configure Tapp to use our custom printer and report caller Tapp.configure do |config| config.report_caller = true config.default_printer = :amazing_print end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
network_utils-0.1.3 | lib/tapp_printer.rb |