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