Class: OsuRuby::Parser::KeyEntry

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

Overview

Key-Value based parser.

Splits key and value between first colon found.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entry

#comment?, determine, inherited, register_checker

Methods included from Interface::MultiplexerInterface

extended

Constructor Details

#initialize(str) ⇒ KeyEntry

splits string into a key-value pair data.

Parameters:

  • str (String)

Instance Attribute Details

#keyString

Returns:

  • (String)

#valueString

Returns:

  • (String)

Class Method Details

.condition(str) ⇒ Boolean

Returns checks if given string is a colon separated key-vaue string.

Returns:

  • (Boolean)

    checks if given string is a colon separated key-vaue string.

Instance Method Details

#to_sString

Returns key-value pair concatenated with colon.

Returns:

  • (String)

    key-value pair concatenated with colon