Module: CutePrint::Mixin
- Included in:
- Object
- Defined in:
- lib/cute_print/mixin.rb
Overview
Note:
The methods in this module are part of the public API, but the module itself is not.
Methods mixed into Object, and so available globally.
Instance Method Summary collapse
- #q(*args, &block) ⇒ Object
- #ql(*args, &block) ⇒ Object
- #qq(*args, &block) ⇒ Object
- #qql(*args, &block) ⇒ Object
-
#tapq ⇒ Object
Debug a call chain by printing self and then returning self.
-
#tapql ⇒ Object
Debug a call chain by printing self, with source location, and then returning self.
-
#tapqq ⇒ Object
Debug a call chain by pretty-printing self and then returning self.
-
#tapqql ⇒ Object
Debug a call chain by pretty-printing self, with source location, and then returning self.
Instance Method Details
#q(*args, &block) ⇒ Object
12 13 14 |
# File 'lib/cute_print/mixin.rb', line 12 def q(*args, &block) CutePrint.q(*args, &block) end |
#ql(*args, &block) ⇒ Object
17 18 19 |
# File 'lib/cute_print/mixin.rb', line 17 def ql(*args, &block) CutePrint.ql(*args, &block) end |
#qq(*args, &block) ⇒ Object
22 23 24 |
# File 'lib/cute_print/mixin.rb', line 22 def qq(*args, &block) CutePrint.qq(*args, &block) end |
#qql(*args, &block) ⇒ Object
27 28 29 |
# File 'lib/cute_print/mixin.rb', line 27 def qql(*args, &block) CutePrint.qql(*args, &block) end |
#tapq ⇒ Object
Debug a call chain by printing self and then returning self.
33 34 35 36 |
# File 'lib/cute_print/mixin.rb', line 33 def tapq q self self end |
#tapql ⇒ Object
Debug a call chain by printing self, with source location, and then returning self.
41 42 43 44 |
# File 'lib/cute_print/mixin.rb', line 41 def tapql ql self self end |
#tapqq ⇒ Object
Debug a call chain by pretty-printing self and then returning self.
49 50 51 52 |
# File 'lib/cute_print/mixin.rb', line 49 def tapqq qq self self end |
#tapqql ⇒ Object
Debug a call chain by pretty-printing self, with source location, and then returning self.
57 58 59 60 |
# File 'lib/cute_print/mixin.rb', line 57 def tapqql qql self self end |