Class: Tryouts::Teardown

Inherits:
Data
  • Object
show all
Includes:
EvalAnchor
Defined in:
lib/tryouts/test_case.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from EvalAnchor

#eval_start_line

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

#codeObject (readonly)

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



104
105
106
# File 'lib/tryouts/test_case.rb', line 104

def code
  @code
end

#first_code_lineObject (readonly)

Returns the value of attribute first_code_line

Returns:

  • (Object)

    the current value of first_code_line



104
105
106
# File 'lib/tryouts/test_case.rb', line 104

def first_code_line
  @first_code_line
end

#line_rangeObject (readonly)

Returns the value of attribute line_range

Returns:

  • (Object)

    the current value of line_range



104
105
106
# File 'lib/tryouts/test_case.rb', line 104

def line_range
  @line_range
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



104
105
106
# File 'lib/tryouts/test_case.rb', line 104

def path
  @path
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


111
112
113
# File 'lib/tryouts/test_case.rb', line 111

def empty?
  code.empty?
end