Class: Tryouts::Teardown
- Inherits:
-
Data
- Object
- Data
- Tryouts::Teardown
- Includes:
- EvalAnchor
- Defined in:
- lib/tryouts/test_case.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#first_code_line ⇒ Object
readonly
Returns the value of attribute first_code_line.
-
#line_range ⇒ Object
readonly
Returns the value of attribute line_range.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(first_code_line: nil, **rest) ⇒ Teardown
constructor
A new instance of Teardown.
Methods included from EvalAnchor
Constructor Details
#initialize(first_code_line: nil, **rest) ⇒ Teardown
Returns a new instance of Teardown.
107 108 109 |
# File 'lib/tryouts/test_case.rb', line 107 def initialize(first_code_line: nil, **rest) super end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code
104 105 106 |
# File 'lib/tryouts/test_case.rb', line 104 def code @code end |
#first_code_line ⇒ Object (readonly)
Returns the value of attribute first_code_line
104 105 106 |
# File 'lib/tryouts/test_case.rb', line 104 def first_code_line @first_code_line end |
#line_range ⇒ Object (readonly)
Returns the value of attribute line_range
104 105 106 |
# File 'lib/tryouts/test_case.rb', line 104 def line_range @line_range end |
#path ⇒ Object (readonly)
Returns the value of attribute path
104 105 106 |
# File 'lib/tryouts/test_case.rb', line 104 def path @path end |
Instance Method Details
#empty? ⇒ Boolean
111 112 113 |
# File 'lib/tryouts/test_case.rb', line 111 def empty? code.empty? end |