Sha256: 5f842c7ecbd755acdef5158cfe2db77ff902b18efb243bfdbe3d662611e71dd0
Contents?: true
Size: 414 Bytes
Versions: 17
Compression:
Stored size: 414 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, :matched_keyword_type 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
17 entries across 17 versions & 2 rubygems