Class: Quarry::Spec::Step
Overview
Step
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#lineno ⇒ Object
readonly
Returns the value of attribute lineno.
-
#parent ⇒ Object
(also: #spec)
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(parent, code, lineno) ⇒ Step
constructor
A new instance of Step.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/quarry/spec/step.rb', line 9 def code @code end |
#lineno ⇒ Object (readonly)
Returns the value of attribute lineno.
10 11 12 |
# File 'lib/quarry/spec/step.rb', line 10 def lineno @lineno end |
#parent ⇒ Object (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 |