Class: TRuby::DocsExampleVerifier::VerificationResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/t_ruby/docs_example_verifier.rb

Overview

Result of verifying a single example

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorsObject

Returns the value of attribute errors

Returns:

  • the current value of errors



20
21
22
# File 'lib/t_ruby/docs_example_verifier.rb', line 20

def errors
  @errors
end

#exampleObject

Returns the value of attribute example

Returns:

  • the current value of example



20
21
22
# File 'lib/t_ruby/docs_example_verifier.rb', line 20

def example
  @example
end

#outputObject

Returns the value of attribute output

Returns:

  • the current value of output



20
21
22
# File 'lib/t_ruby/docs_example_verifier.rb', line 20

def output
  @output
end

#statusObject

Returns the value of attribute status

Returns:

  • the current value of status



20
21
22
# File 'lib/t_ruby/docs_example_verifier.rb', line 20

def status
  @status
end

Instance Method Details

#fail?Boolean

Returns:



31
32
33
# File 'lib/t_ruby/docs_example_verifier.rb', line 31

def fail?
  status == :fail
end

#file_pathObject



39
40
41
# File 'lib/t_ruby/docs_example_verifier.rb', line 39

def file_path
  example.file_path
end

#line_numberObject



43
44
45
# File 'lib/t_ruby/docs_example_verifier.rb', line 43

def line_number
  example.line_number
end

#pass?Boolean

Returns:



27
28
29
# File 'lib/t_ruby/docs_example_verifier.rb', line 27

def pass?
  status == :pass
end

#skip?Boolean

Returns:



35
36
37
# File 'lib/t_ruby/docs_example_verifier.rb', line 35

def skip?
  status == :skip
end