class Rattler::Parsers::Eof
Eof
succeeds if there is no more input to parse.
Public Class Methods
[]()
click to toggle source
Return the singleton instance of Eof
@return [Eof] the singleton instance
# File lib/rattler/parsers/eof.rb, line 14 def self.[]() self.instance end
Public Instance Methods
capturing?()
click to toggle source
(see Parser#capturing?
)
# File lib/rattler/parsers/eof.rb, line 33 def capturing? false end
parse(scanner, *_)
click to toggle source
Return true
if there is no more input to parse
@param (see Match#parse
)
@return [Boolean] true
if there is no more input to parse
# File lib/rattler/parsers/eof.rb, line 28 def parse(scanner, *_) scanner.eos? end