Question: Is it possible indented and colored print like a description of example in RSpec?

Question

Is it possible indented and colored print like a description of example in RSpec?

Answers 0
Added at 2017-01-01 07:01
Tags
Question

I want to stdout a message with indented and colored like a description of example in RSpec. But, I think there is no ways.

My thoughts:

  • Using print, p or puts is not indented and colored.
  • Using a example is too noisy for stdouting only.

I want simple stdouting method supported indentation and coloring. Is it possible?

Answers
Source Show
◀ Wstecz