Class: OsuRuby::Parser::Entry Abstract
- Inherits:
-
Object
- Object
- OsuRuby::Parser::Entry
- Includes:
- Interface::AbstractClass
- Defined in:
- (osu-ruby2 0.0.2) osu-ruby2/parser/content.rb
Overview
This class is meant for parser base system and a global registry for all of it's descendants.
A class dictated with ability to parse given text content and convert-back into the given string format using #to_s
.
Direct Known Subclasses
Class Method Summary collapse
-
.condition(str) ⇒ Boolean?
checks applicable condition for matching.
-
.determine(str) ⇒ Entry
parses given string into a proper parser class.
-
.inherited(cls)
Method hook invoked upon inheritance.
-
.register_checker(cls)
register an Entry subclass to global registry.
Instance Method Summary collapse
-
#comment? ⇒ Boolean
checks whether entry does not need further parsing.
Methods included from Interface::MultiplexerInterface
Class Method Details
.condition(str) ⇒ Boolean?
checks applicable condition for matching
.determine(str) ⇒ Entry
this function is overridden on subclasses into an alias of new
.
parses given string into a proper parser class.
.inherited(cls)
This method returns an undefined value.
Method hook invoked upon inheritance.
Performs following actions:
-
Automatically unmarks class as abstract. Unless defined again. (To be removed.)
-
Shadows determine function into initialize.
-
Aliaases register_checker function to use register_checker instead.
.register_checker(cls)
This method returns an undefined value.
register an OsuRuby::Parser::Entry subclass to global registry
Instance Method Details
#comment? ⇒ Boolean
checks whether entry does not need further parsing