Class: Tryouts::Setup

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) ⇒ 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

#codeObject (readonly)

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



77
78
79
# File 'lib/tryouts/test_case.rb', line 77

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



77
78
79
# File 'lib/tryouts/test_case.rb', line 77

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



77
78
79
# File 'lib/tryouts/test_case.rb', line 77

def line_range
  @line_range
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



77
78
79
# File 'lib/tryouts/test_case.rb', line 77

def path
  @path
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


84
85
86
# File 'lib/tryouts/test_case.rb', line 84

def empty?
  code.empty?
end