Class: Proof::Result

Inherits:
Object
  • Object
show all
Includes:
Initializer
Defined in:
lib/proof/result.rb

Instance Method Summary collapse

Instance Method Details

#output_methodObject



12
13
14
15
16
17
# File 'lib/proof/result.rb', line 12

def output_method
  if status == :error
    return :fail
  end
  return status
end

#writeObject



7
8
9
10
# File 'lib/proof/result.rb', line 7

def write
  Output.write output_method, description
  Error.output error if status == :error
end