class Cucumber::Core::Ast::BackgroundFinder

Public Class Methods

new(feature_elements) click to toggle source
# File lib/cucumber/core/ast/feature.rb, line 59
def initialize(feature_elements)
  @background = nil
  feature_elements[0].describe_to(self) unless feature_elements.empty?
end

Public Instance Methods

background(background) click to toggle source
# File lib/cucumber/core/ast/feature.rb, line 64
def background(background)
  @background = background
end
method_missing(*) click to toggle source
# File lib/cucumber/core/ast/feature.rb, line 72
def method_missing(*)
end
result() click to toggle source
# File lib/cucumber/core/ast/feature.rb, line 68
def result
  @background ? @background : EmptyBackground.new
end