class Cucumber::Core::Ast::BackgroundFinder
Public Class Methods
new(feature_elements)
click to toggle source
# File lib/cucumber/core/ast/feature.rb, line 69 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 74 def background(background) @background = background end
method_missing(*)
click to toggle source
# File lib/cucumber/core/ast/feature.rb, line 82 def method_missing(*) end
result()
click to toggle source
# File lib/cucumber/core/ast/feature.rb, line 78 def result @background ? @background : EmptyBackground.new end