Sha256: fa8cffb29555b2e1ae88417b70841bab1db090e96fff8f2537198fba4f411e32

Contents?: true

Size: 569 Bytes

Versions: 2

Compression:

Stored size: 569 Bytes

Contents

module Cucumber
  module Core
    module Ast
      module Names
        attr_reader :description, :name

        def title
          warn("deprecated. Use #name")
          name
        end

        def legacy_conflated_name_and_description
          s = name
          s += "\n#{@description}" if @description != ""
          s
        end

        def to_s
          name
        end

        def inspect
          keyword_and_name = [keyword, name].join(": ")
          %{#<#{self.class} "#{keyword_and_name}" (#{location})>}
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cucumber-core-1.3.0 lib/cucumber/core/ast/names.rb
cucumber-core-1.2.0 lib/cucumber/core/ast/names.rb