Class: OsuRuby::Parser::KeyEntry
- 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
-
.condition(str) ⇒ Boolean
Checks if given string is a colon separated key-vaue string.
Instance Method Summary collapse
-
#initialize(str) ⇒ KeyEntry
constructor
splits string into a key-value pair data.
-
#to_s ⇒ String
Key-value pair concatenated with colon.
Methods inherited from Entry
#comment?, determine, inherited, register_checker
Methods included from Interface::MultiplexerInterface
Constructor Details
#initialize(str) ⇒ KeyEntry
splits string into a key-value pair data.
Instance Attribute Details
#key ⇒ String
#value ⇒ String
Class Method Details
.condition(str) ⇒ Boolean
Returns checks if given string is a colon separated key-vaue string.
Instance Method Details
#to_s ⇒ String
Returns key-value pair concatenated with colon.