Module: Tapp::ObjectExtension
- Defined in:
- lib/tapp/object_extension.rb
Instance Method Summary collapse
Instance Method Details
#taap ⇒ Object
18 19 20 21 22 |
# File 'lib/tapp/object_extension.rb', line 18 def taap warn 'DEPRECATION WARNING: `taap` is deprecated. Set `Tapp.config.default_printer = :awesome_print` and use `tapp` instead.' tapp :awesome_print end |
#tapp(printer = Tapp.config.default_printer) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/tapp/object_extension.rb', line 6 def tapp(printer = Tapp.config.default_printer) Tapp::Util.report_called if Tapp.config.report_caller tap { Tapp::Printer.instance(printer).print block_given? ? yield(self) : self } end |
#taputs(&block) ⇒ Object
14 15 16 |
# File 'lib/tapp/object_extension.rb', line 14 def taputs(&block) tapp :puts, &block end |