Class: Evilution::CLI::Result Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/evilution/cli/result.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exit_code:, error: nil, error_rendered: false) ⇒ Result

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Result.



5
6
7
# File 'lib/evilution/cli/result.rb', line 5

def initialize(exit_code:, error: nil, error_rendered: false)
  super
end

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



4
5
6
# File 'lib/evilution/cli/result.rb', line 4

def error
  @error
end

#error_renderedObject

Returns the value of attribute error_rendered

Returns:

  • (Object)

    the current value of error_rendered



4
5
6
# File 'lib/evilution/cli/result.rb', line 4

def error_rendered
  @error_rendered
end

#exit_codeObject

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



4
5
6
# File 'lib/evilution/cli/result.rb', line 4

def exit_code
  @exit_code
end