Class: Quarry::Spec::Header
Overview
Header
Instance Attribute Summary collapse
-
#lineno ⇒ Object
readonly
Returns the value of attribute lineno.
-
#parent ⇒ Object
(also: #spec)
readonly
Returns the value of attribute parent.
-
#text ⇒ Object
(also: #description)
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(parent, text, lineno) ⇒ Header
constructor
A new instance of Header.
Constructor Details
#initialize(parent, text, lineno) ⇒ Header
Returns a new instance of Header.
42 43 44 45 46 |
# File 'lib/quarry/spec/step.rb', line 42 def initialize(parent, text, lineno) @parent = parent @text = text.strip @lineno = lineno end |
Instance Attribute Details
#lineno ⇒ Object (readonly)
Returns the value of attribute lineno.
40 41 42 |
# File 'lib/quarry/spec/step.rb', line 40 def lineno @lineno end |
#parent ⇒ Object (readonly) Also known as: spec
Returns the value of attribute parent.
38 39 40 |
# File 'lib/quarry/spec/step.rb', line 38 def parent @parent end |
#text ⇒ Object (readonly) Also known as: description
Returns the value of attribute text.
39 40 41 |
# File 'lib/quarry/spec/step.rb', line 39 def text @text end |