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