Module: PBatcher::Printer
Constant Summary collapse
- SUCCESS_MESSAGE =
"OK".green.freeze
- FAILURE_MESSAGE =
"FAIL".red.freeze
- OVERFLOW =
'...'
Instance Method Summary collapse
- #failure ⇒ Object
- #message(str, options = { max_size: 90 }) ⇒ Object
- #newline ⇒ Object
- #success ⇒ Object
Instance Method Details
#failure ⇒ Object
18 19 20 |
# File 'lib/pbatcher/printer.rb', line 18 def failure print "[#{FAILURE_MESSAGE}]" end |
#message(str, options = { max_size: 90 }) ⇒ Object
10 11 12 |
# File 'lib/pbatcher/printer.rb', line 10 def (str, = { max_size: 90 }) print (str, ) end |
#newline ⇒ Object
22 23 24 |
# File 'lib/pbatcher/printer.rb', line 22 def newline puts '' end |
#success ⇒ Object
14 15 16 |
# File 'lib/pbatcher/printer.rb', line 14 def success print "[#{SUCCESS_MESSAGE}]" end |