class Riddle::Configuration::Parser::InnerParser

Constants

SETTING_PATTERN

Public Class Methods

new(input) click to toggle source
# File lib/riddle/configuration/parser.rb, line 109
def initialize(input)
  @stream   = StringIO.new(input)
  @sections = {}
end

Public Instance Methods

parse!() click to toggle source
# File lib/riddle/configuration/parser.rb, line 114
def parse!
  while label = next_line do
    @sections[label] = next_settings
  end

  @sections
end