Sha256: 64e7b1ab07c49d515d783149164d11f20bec44923f2f41ffd19d6e8d427bd1f9

Contents?: true

Size: 452 Bytes

Versions: 5

Compression:

Stored size: 452 Bytes

Contents

module YARD::CodeObjects::Cucumber

  class Scenario < NamespaceObject

    attr_accessor :value, :comments, :keyword, :description, :steps, :tags, :feature

    def initialize(namespace, name)
      super(namespace, name.to_s.strip)
      @comments = @description = @keyword = @value = @feature = nil
      @steps = []
      @tags = []
    end

    def background?
      @keyword == "Background"
    end

    def outline?
      false
    end
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
yard-gherkin-turnip-1.0.2 lib/yard/code_objects/cucumber/scenario.rb
yard-gherkin-turnip-1.0.1 lib/yard/code_objects/cucumber/scenario.rb
yard-gherkin-turnip-1.0.0 lib/yard/code_objects/cucumber/scenario.rb
yard-nrser-cucumber-0.1.3 lib/yard/code_objects/cucumber/scenario.rb
yard-cucumber-4.0.0 lib/yard/code_objects/cucumber/scenario.rb