Method: Pry::Helpers::Text#default

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

#default(text) ⇒ String

Returns ‘text` in the default foreground colour. Use this instead of “black” or “white” when you mean absence of colour.

Parameters:

  • text (String, #to_s)

Returns:

  • (String)


63
64
65
# File 'lib/pry/helpers/text.rb', line 63

def default(text)
  text.to_s
end