Sha256: cf691a06204073728221c35f1ae996bcd53ebf4be6fd7e57349d2054ba6077fe

Contents?: true

Size: 503 Bytes

Versions: 3

Compression:

Stored size: 503 Bytes

Contents

require 'active_support/core_ext/string/filters'

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

3 entries across 3 versions & 1 rubygems

Version Path
yard-nrser-cucumber-0.1.2 lib/yard/code_objects/cucumber/scenario.rb
yard-nrser-cucumber-0.1.1 lib/yard/code_objects/cucumber/scenario.rb
yard-nrser-cucumber-0.1.0 lib/yard/code_objects/cucumber/scenario.rb