Sha256: f82d777069d5faf0b55e9f9980e7ec605f350e78946c5279e5b6d7fa48e2a05d

Contents?: true

Size: 391 Bytes

Versions: 49

Compression:

Stored size: 391 Bytes

Contents

module Gherkin
  class Token < Struct.new(:line, :location)
    attr_accessor :matched_type, :matched_text, :matched_keyword, :matched_indent,
                  :matched_items, :matched_gherkin_dialect

    def eof?
      line.nil?
    end

    def detach
      # TODO: detach line - is this needed?
    end

    def token_value
      eof? ? "EOF" : line.get_line_text(-1)
    end
  end
end

Version data entries

49 entries across 49 versions & 5 rubygems

Version Path
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-gherkin-23.0.1/lib/gherkin/token.rb
cucumber-gherkin-23.0.1 lib/gherkin/token.rb
cucumber-gherkin-23.0.0 lib/gherkin/token.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/cucumber-gherkin-22.0.0/lib/gherkin/token.rb
cucumber-gherkin-22.0.0 lib/gherkin/token.rb
cucumber-gherkin-21.0.0 lib/gherkin/token.rb
cucumber-gherkin-20.0.1 lib/gherkin/token.rb
cucumber-gherkin-20.0.0 lib/gherkin/token.rb
cucumber-gherkin-19.0.3 lib/gherkin/token.rb
cucumber-gherkin-19.0.2 lib/gherkin/token.rb
cucumber-gherkin-19.0.1 lib/gherkin/token.rb
cucumber-gherkin-19.0.0 lib/gherkin/token.rb
cucumber-gherkin-18.1.1 lib/gherkin/token.rb
cucumber-gherkin-18.1.0 lib/gherkin/token.rb
cucumber-gherkin-18.0.0 lib/gherkin/token.rb
cucumber-gherkin-17.0.2 lib/gherkin/token.rb
cucumber-gherkin-17.0.1 lib/gherkin/token.rb