lib/cucumber/core/ast/names.rb



module Cucumber
  module Core
    module Ast
      module Names
        attr_reader :description

        def name
          title
        end

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

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

        def to_s
          @title
        end
      end
    end
  end
end