Class: Tryouts::Setup
- Inherits:
-
Data
- Object
- Data
- Tryouts::Setup
- 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) ⇒ Setup
constructor
A new instance of Setup.
Methods included from EvalAnchor
Constructor Details
#initialize(first_code_line: nil, **rest) ⇒ Setup
Returns a new instance of Setup.
80 81 82 |
# File 'lib/tryouts/test_case.rb', line 80 def initialize(first_code_line: nil, **rest) super end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code
77 78 79 |
# File 'lib/tryouts/test_case.rb', line 77 def code @code end |
#first_code_line ⇒ Object (readonly)
Returns the value of attribute first_code_line
77 78 79 |
# File 'lib/tryouts/test_case.rb', line 77 def first_code_line @first_code_line end |
#line_range ⇒ Object (readonly)
Returns the value of attribute line_range
77 78 79 |
# File 'lib/tryouts/test_case.rb', line 77 def line_range @line_range end |
#path ⇒ Object (readonly)
Returns the value of attribute path
77 78 79 |
# File 'lib/tryouts/test_case.rb', line 77 def path @path end |
Instance Method Details
#empty? ⇒ Boolean
84 85 86 |
# File 'lib/tryouts/test_case.rb', line 84 def empty? code.empty? end |