Method: Pry::Helpers::Text#no_color

Defined in:
lib/pry/helpers/text.rb

#no_color { ... } ⇒ void

This method returns an undefined value.

Yields:

  • Yields a block with color turned off.



73
74
75
76
77
78
79
# File 'lib/pry/helpers/text.rb', line 73

def no_color
  boolean = Pry.config.color
  Pry.config.color = false
  yield
ensure
  Pry.config.color = boolean
end