Class: Sevgi::Test::Shell::Result
- Inherits:
-
Data
- Object
- Data
- Sevgi::Test::Shell::Result
- Defined in:
- lib/sevgi/showcase/minitest/shell.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#err ⇒ Object
readonly
Returns the value of attribute err.
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args
8 9 10 |
# File 'lib/sevgi/showcase/minitest/shell.rb', line 8 def args @args end |
#err ⇒ Object (readonly)
Returns the value of attribute err
8 9 10 |
# File 'lib/sevgi/showcase/minitest/shell.rb', line 8 def err @err end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code
8 9 10 |
# File 'lib/sevgi/showcase/minitest/shell.rb', line 8 def exit_code @exit_code end |
#out ⇒ Object (readonly)
Returns the value of attribute out
8 9 10 |
# File 'lib/sevgi/showcase/minitest/shell.rb', line 8 def out @out end |
Instance Method Details
#cmd ⇒ Object
9 |
# File 'lib/sevgi/showcase/minitest/shell.rb', line 9 def cmd = args.join(" ") |
#notok? ⇒ Boolean
11 |
# File 'lib/sevgi/showcase/minitest/shell.rb', line 11 def notok? = !ok? |
#ok? ⇒ Boolean
13 |
# File 'lib/sevgi/showcase/minitest/shell.rb', line 13 def ok? = exit_code&.zero? |
#outline ⇒ Object
15 |
# File 'lib/sevgi/showcase/minitest/shell.rb', line 15 def outline = out.first |
#to_s ⇒ Object
17 |
# File 'lib/sevgi/showcase/minitest/shell.rb', line 17 def to_s = out.join("\n") |