Class: OsuRuby::Parser::CommentEntry

Inherits:
RawEntry show all
Defined in:
(osu-ruby2 0.0.2) osu-ruby2/parser/content.rb

Overview

Comment based parser.

Instance Attribute Summary

Attributes inherited from RawEntry

#content

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entry

determine, inherited, register_checker

Methods included from Interface::MultiplexerInterface

extended

Constructor Details

#initialize(str) ⇒ CommentEntry

Returns a new instance of CommentEntry.

Class Method Details

.condition(str) ⇒ Boolean

checks whether given string is a comment or not.

Returns:

  • (Boolean)

Instance Method Details

#comment?Boolean

marks given entry are comment type.

Returns:

  • (Boolean)

#to_sString

Returns retains comment marker for given string.

Returns:

  • (String)

    retains comment marker for given string.