Class: Minitest::PrideIO
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | lib/minitest/pride_plugin.rb |
Overview
Show your testing pride!
Constant Summary
-
ESC =
Start an escape sequence
"\e["
-
NND =
End the escape sequence
"#{ESC}0m"
Class Attribute Summary
-
.pride? ⇒ Boolean
readonly
Are we showing our testing pride?
Class Method Summary
-
.pride!
Activate the pride plugin.
- .new(io) ⇒ PrideIO constructor Internal use only
Instance Attribute Summary
-
#io
readonly
The IO we're going to pipe through.
Instance Method Summary
-
#pride(string)
Color a string.
-
#print(o)
Wrap print to colorize the output.
- #method_missing(msg, *args) Internal use only
- #puts(*o) Internal use only
Constructor Details
.new(io) ⇒ PrideIO
This method is for internal use only.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(msg, *args)
This method is for internal use only.
[ GitHub ]
# File 'lib/minitest/pride_plugin.rb', line 96
def method_missing msg, *args # :nodoc: io.send(msg, *args) end
Class Attribute Details
.pride? ⇒ Boolean
(readonly)
Are we showing our testing pride?
# File 'lib/minitest/pride_plugin.rb', line 35
def self.pride? @pride ||= false end
Class Method Details
.pride!
Activate the pride plugin. Called from both -p option and minitest/pride
# File 'lib/minitest/pride_plugin.rb', line 28
def self.pride! @pride = true end
Instance Attribute Details
#io (readonly)
The IO we're going to pipe through.
# File 'lib/minitest/pride_plugin.rb', line 46
attr_reader :io
Instance Method Details
#pride(string)
Color a string.
#print(o)
Wrap print to colorize the output.
#puts(*o)
This method is for internal use only.
[ GitHub ]