Class: OsuRuby::Parser::RawFile
- Defined in:
- (osu-ruby2 0.0.2) osu-ruby2/parser/content.rb
Overview
Implements basic ability to parse normal file.
Parser Core uses 4 functionality to work.
-
Reader, text file to machine variables conversion. Uses Section and Entry to help.
-
Writer, machine variables to text file. Make a use of Base#compile_contents and Section#to_s.
-
Transformer, passing machine variables to other machine variables potentially changing its internals. Simplified the usage through #sections
-
Converter, passes machine variables into Behavior specific container that accepts given variables. See Base#convert
Direct Known Subclasses
Instance Attribute Summary collapse
-
#sections ⇒ Array<Section>
readonly
File sections.
Instance Method Summary collapse
-
#compile_contents ⇒ String
converts parsed data into osu! readable text file.
-
#initialize ⇒ RawFile
constructor
A new instance of RawFile.
-
#parse(io)
parse given IO input to program editable contents.
-
#parse_header(io)
parse file header if any.
-
#parse_sections(io)
parse whole file string and populate the #sections variable.
Methods inherited from Base
Constructor Details
#initialize ⇒ RawFile
Returns a new instance of RawFile.
Instance Attribute Details
#sections ⇒ Array<Section> (readonly)
Returns file sections.
Instance Method Details
#compile_contents ⇒ String
converts parsed data into osu! readable text file.
#parse(io)
This method returns an undefined value.
parse given IO input to program editable contents
#parse_header(io)
This method returns an undefined value.
parse file header if any
#parse_sections(io)
This method returns an undefined value.
parse whole file string and populate the #sections variable.