Class: Cucumber::Ast::EmptyBackground

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/ast/empty_background.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#featureObject

Returns the value of attribute feature.



7
8
9
# File 'lib/cucumber/ast/empty_background.rb', line 7

def feature
  @feature
end

#file=(value) ⇒ Object (writeonly)

Sets the attribute file

Parameters:

  • value

    the value to set the attribute file to.



6
7
8
# File 'lib/cucumber/ast/empty_background.rb', line 6

def file=(value)
  @file = value
end

Instance Method Details

#accept(visitor) ⇒ Object



28
29
# File 'lib/cucumber/ast/empty_background.rb', line 28

def accept(visitor)
end

#failed?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/cucumber/ast/empty_background.rb', line 9

def failed?
  false
end

#feature_elementsObject



13
14
15
# File 'lib/cucumber/ast/empty_background.rb', line 13

def feature_elements
  []
end

#initObject



25
26
# File 'lib/cucumber/ast/empty_background.rb', line 25

def init
end

#step_collection(step_invocations) ⇒ Object



17
18
19
# File 'lib/cucumber/ast/empty_background.rb', line 17

def step_collection(step_invocations)
  StepCollection.new(step_invocations)
end

#step_invocationsObject



21
22
23
# File 'lib/cucumber/ast/empty_background.rb', line 21

def step_invocations
  []
end