Class: Rattler::Parsers::ESymbol
- Inherits:
-
Parser
- Object
- Util::Node
- Parser
- Rattler::Parsers::ESymbol
- Includes:
- Atomic, Singleton
- Defined in:
- lib/rattler/parsers/e_symbol.rb
Overview
ESymbol
always succeeds without advancing.
Class Method Summary collapse
-
.[] ⇒ ESymbol
Return the singleton instance of
ESymbol
. - .parsed(*_) ⇒ Object
Instance Method Summary collapse
- #capturing? ⇒ Boolean
-
#parse(scanner, rules, scope = {}) ⇒ Object
Return
true
without advancing.
Methods included from Atomic
Methods inherited from Parser
#&, #labeled?, #one_or_more, #optional, #skip, #variable_capture_count?, #with_ws, #zero_or_more, #|
Methods inherited from Util::Node
#==, #[], #attrs, #can_equal?, #child, #children, #each, #empty?, #eql?, #initialize, #inspect, #method_missing, #name, #respond_to?, #same_contents?, #to_graphviz, #with_attrs, #with_attrs!, #with_children
Constructor Details
This class inherits a constructor from Rattler::Util::Node
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Rattler::Util::Node
Class Method Details
.[] ⇒ ESymbol
Return the singleton instance of ESymbol
24 25 26 |
# File 'lib/rattler/parsers/e_symbol.rb', line 24 def self.[]() self.instance end |
.parsed(*_) ⇒ Object
29 30 31 |
# File 'lib/rattler/parsers/e_symbol.rb', line 29 def self.parsed(*_) #:nodoc: self.instance end |
Instance Method Details
#capturing? ⇒ Boolean
42 43 44 |
# File 'lib/rattler/parsers/e_symbol.rb', line 42 def capturing? false end |
#parse(scanner, rules, scope = {}) ⇒ Object
Return true
without advancing
38 39 40 |
# File 'lib/rattler/parsers/e_symbol.rb', line 38 def parse(scanner, rules, scope = {}) true end |