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

Instance Method Details

#q(*args, &block) ⇒ Object

See Also:

  • CutePrint#q


12
13
14
# File 'lib/cute_print/mixin.rb', line 12

def q(*args, &block)
  CutePrint.q(*args, &block)
end

#ql(*args, &block) ⇒ Object

See Also:

  • CutePrint#ql


17
18
19
# File 'lib/cute_print/mixin.rb', line 17

def ql(*args, &block)
  CutePrint.ql(*args, &block)
end

#qq(*args, &block) ⇒ Object

See Also:

  • CutePrint#qq


22
23
24
# File 'lib/cute_print/mixin.rb', line 22

def qq(*args, &block)
  CutePrint.qq(*args, &block)
end

#qql(*args, &block) ⇒ Object

See Also:

  • CutePrint#qql


27
28
29
# File 'lib/cute_print/mixin.rb', line 27

def qql(*args, &block)
  CutePrint.qql(*args, &block)
end

#tapqObject

Debug a call chain by printing self and then returning self.

Returns:



33
34
35
36
# File 'lib/cute_print/mixin.rb', line 33

def tapq
  q self
  self
end

#tapqlObject

Debug a call chain by printing self, with source location, and then returning self.

Returns:



41
42
43
44
# File 'lib/cute_print/mixin.rb', line 41

def tapql
  ql self
  self
end

#tapqqObject

Debug a call chain by pretty-printing self and then returning self.

Returns:



49
50
51
52
# File 'lib/cute_print/mixin.rb', line 49

def tapqq
  qq self
  self
end

#tapqqlObject

Debug a call chain by pretty-printing self, with source location, and then returning self.

Returns:



57
58
59
60
# File 'lib/cute_print/mixin.rb', line 57

def tapqql
  qql self
  self
end