Class: Sevgi::Test::Shell::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/sevgi/showcase/minitest/shell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



8
9
10
# File 'lib/sevgi/showcase/minitest/shell.rb', line 8

def args
  @args
end

#errObject (readonly)

Returns the value of attribute err

Returns:

  • (Object)

    the current value of err



8
9
10
# File 'lib/sevgi/showcase/minitest/shell.rb', line 8

def err
  @err
end

#exit_codeObject (readonly)

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



8
9
10
# File 'lib/sevgi/showcase/minitest/shell.rb', line 8

def exit_code
  @exit_code
end

#outObject (readonly)

Returns the value of attribute out

Returns:

  • (Object)

    the current value of out



8
9
10
# File 'lib/sevgi/showcase/minitest/shell.rb', line 8

def out
  @out
end

Instance Method Details

#cmdObject



9
# File 'lib/sevgi/showcase/minitest/shell.rb', line 9

def cmd = args.join(" ")

#notok?Boolean

Returns:

  • (Boolean)


11
# File 'lib/sevgi/showcase/minitest/shell.rb', line 11

def notok? = !ok?

#ok?Boolean

Returns:

  • (Boolean)


13
# File 'lib/sevgi/showcase/minitest/shell.rb', line 13

def ok? = exit_code&.zero?

#outlineObject



15
# File 'lib/sevgi/showcase/minitest/shell.rb', line 15

def outline = out.first

#to_sObject



17
# File 'lib/sevgi/showcase/minitest/shell.rb', line 17

def to_s = out.join("\n")