Sha256: 940b329fa297006073d2bcbb21f185ebb38ee296f61edefec16ecb832ca4b240

Contents?: true

Size: 434 Bytes

Versions: 34

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true

module Cucumber
  module Core
    module Gherkin
      class Document
        attr_reader :uri, :body, :language

        def initialize(uri, body, language=nil)
          @uri      = uri
          @body     = body
          @language = language || 'en'
        end

        def to_s
          body
        end

        def ==(other)
          to_s == other.to_s
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 4 rubygems

Version Path
cucumber-core-13.0.2 lib/cucumber/core/gherkin/document.rb
cucumber-core-13.0.1 lib/cucumber/core/gherkin/document.rb
cucumber-core-13.0.0 lib/cucumber/core/gherkin/document.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/cucumber-core-12.0.0/lib/cucumber/core/gherkin/document.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/cucumber-core-11.1.0/lib/cucumber/core/gherkin/document.rb
cucumber-core-12.0.0 lib/cucumber/core/gherkin/document.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/gherkin/document.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/gherkin/document.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/gherkin/document.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-core-11.0.0/lib/cucumber/core/gherkin/document.rb
cucumber-core-11.1.0 lib/cucumber/core/gherkin/document.rb
cucumber-core-11.0.0 lib/cucumber/core/gherkin/document.rb
cucumber-core-10.1.1 lib/cucumber/core/gherkin/document.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/cucumber-core-10.1.0/lib/cucumber/core/gherkin/document.rb
cucumber-core-10.1.0 lib/cucumber/core/gherkin/document.rb
cucumber-core-10.0.1 lib/cucumber/core/gherkin/document.rb
cucumber-core-10.0.0 lib/cucumber/core/gherkin/document.rb
cucumber-core-9.0.1 lib/cucumber/core/gherkin/document.rb
cucumber-core-9.0.0 lib/cucumber/core/gherkin/document.rb
cucumber-core-8.0.1 lib/cucumber/core/gherkin/document.rb