Sha256: b75888daac9aff7f58a5a767181942f225708928e2e112c56b51b3d9265168c9

Contents?: true

Size: 566 Bytes

Versions: 5

Compression:

Stored size: 566 Bytes

Contents

module CucumberAnalytics

  # A class modeling a Cucumber feature's Background.

  class Background < TestElement

    # Creates a new Background object and, if *source* is provided, populates
    # the object.
    def initialize(source = nil)
      parsed_background = process_source(source)

      super(parsed_background)

      build_background(parsed_background) if parsed_background
    end


    private


    def build_background(parsed_background)
      # Just a stub in case something specific needs to be done
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cucumber_analytics-1.4.2 lib/cucumber_analytics/background.rb
cucumber_analytics-1.4.1 lib/cucumber_analytics/background.rb
cucumber_analytics-1.4.0 lib/cucumber_analytics/background.rb
cucumber_analytics-1.3.0 lib/cucumber_analytics/background.rb
cucumber_analytics-1.2.0 lib/cucumber_analytics/background.rb