Class: OsuRuby::Parser::Entry Abstract

Inherits:
Object
  • Object
show all
Includes:
Interface::AbstractClass
Defined in:
(osu-ruby2 0.0.2) osu-ruby2/parser/content.rb

Overview

This class is abstract.

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

KeyEntry, RawEntry, SplitEntry

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Interface::MultiplexerInterface

extended

Class Method Details

.condition(str) ⇒ Boolean?

checks applicable condition for matching

Parameters:

  • str (String)

    string to match

Returns:

  • (Boolean, nil)

.determine(str) ⇒ Entry

Note:

this function is overridden on subclasses into an alias of new.

parses given string into a proper parser class.

Returns:

.inherited(cls)

This method returns an undefined value.

Method hook invoked upon inheritance.

Performs following actions:

.register_checker(cls)

This method returns an undefined value.

register an OsuRuby::Parser::Entry subclass to global registry

Parameters:

Instance Method Details

#comment?Boolean

checks whether entry does not need further parsing

Returns:

  • (Boolean)