Class: Quarry::Spec::Header

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

Overview

Header

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#linenoObject (readonly)

Returns the value of attribute lineno.



40
41
42
# File 'lib/quarry/spec/step.rb', line 40

def lineno
  @lineno
end

#parentObject (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

#textObject (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