Class: Quarry::Spec::Step

Inherits:
Object show all
Defined in:
lib/quarry/spec/step.rb

Overview

Step

Direct Known Subclasses

Macro

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent, code, lineno) ⇒ Step

Returns a new instance of Step.



12
13
14
15
16
# File 'lib/quarry/spec/step.rb', line 12

def initialize(parent, code, lineno)
  @parent = parent
  @code   = code.rstrip
  @lineno = lineno
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



9
10
11
# File 'lib/quarry/spec/step.rb', line 9

def code
  @code
end

#linenoObject (readonly)

Returns the value of attribute lineno.



10
11
12
# File 'lib/quarry/spec/step.rb', line 10

def lineno
  @lineno
end

#parentObject (readonly) Also known as: spec

Returns the value of attribute parent.



8
9
10
# File 'lib/quarry/spec/step.rb', line 8

def parent
  @parent
end