Class: TRuby::DocsExampleVerifier::VerificationResult
- Inherits:
-
Struct
- Object
- Struct
- TRuby::DocsExampleVerifier::VerificationResult
- Defined in:
- lib/t_ruby/docs_example_verifier.rb
Overview
Result of verifying a single example
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#example ⇒ Object
Returns the value of attribute example.
-
#output ⇒ Object
Returns the value of attribute output.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors
20 21 22 |
# File 'lib/t_ruby/docs_example_verifier.rb', line 20 def errors @errors end |
#example ⇒ Object
Returns the value of attribute example
20 21 22 |
# File 'lib/t_ruby/docs_example_verifier.rb', line 20 def example @example end |
#output ⇒ Object
Returns the value of attribute output
20 21 22 |
# File 'lib/t_ruby/docs_example_verifier.rb', line 20 def output @output end |
#status ⇒ Object
Returns the value of attribute status
20 21 22 |
# File 'lib/t_ruby/docs_example_verifier.rb', line 20 def status @status end |
Instance Method Details
#fail? ⇒ Boolean
31 32 33 |
# File 'lib/t_ruby/docs_example_verifier.rb', line 31 def fail? status == :fail end |
#file_path ⇒ Object
39 40 41 |
# File 'lib/t_ruby/docs_example_verifier.rb', line 39 def file_path example.file_path end |
#line_number ⇒ Object
43 44 45 |
# File 'lib/t_ruby/docs_example_verifier.rb', line 43 def line_number example.line_number end |
#pass? ⇒ Boolean
27 28 29 |
# File 'lib/t_ruby/docs_example_verifier.rb', line 27 def pass? status == :pass end |
#skip? ⇒ Boolean
35 36 37 |
# File 'lib/t_ruby/docs_example_verifier.rb', line 35 def skip? status == :skip end |