vendor/bundle/ruby/1.8/gems/inifile-1.1.0/lib/inifile.rb
def parse_property( line )
    p = v = nil
    split = line =~ @rgxp_param

    if split
      p = line.slice(0, split+1).strip
      v = line.slice(split+2, line.length).strip
    else
      v = line
    end

    if p.nil? and @_current_param.nil?
      raise Error, "could not parse line '#{line}'"
    end

    @_current_param = p unless p.nil?

    if @_current_value then @_current_value << v
    else @_current_value = v end

    finish_property unless @_current_value.sub!(%r/\\\z/, "\n")
  end
# Attempt to parse a property name and value from the given _line_. This
# method takes into account multi-line values.
#
Attempt to parse a property name and value from the given _line_. This
method takes into account multi-line values.
Attempt to parse a property name and value from the given _line_ . This method takes into account multi - line values .
def parse_property( line )
    p = v = nil
    split = line =~ @rgxp_param
    if split
      p = line.slice(0, split+1).strip
      v = line.slice(split+2, line.length).strip
    else
      v = line
    end
    if p.nil? and @_current_param.nil?
      raise Error, "could not parse line '#{line}'"
    end
    @_current_param = p unless p.nil?
    if @_current_value then @_current_value << v
    else @_current_value = v end
    finish_property unless @_current_value.sub!(%r/\\\z/, "\n")
  end
def parse_property ( line ) p = v = nil split = line =~ @rgxp_param if split p = line . slice ( 0 , split + 1 ) . strip v = line . slice ( split + 2 , line . length ) . strip else v = line end if p . nil? and @_current_param . nil? raise Error , "could not parse line '#{line}'" end @_current_param = p unless p . nil? if @_current_value then @_current_value << v else @_current_value = v end finish_property unless @_current_value . sub! ( %r/ \\ \z / , "\n" ) end
Attempt to parse a property name and value from the given _line_.
Attempt to parse a property name and value from the given _line_ .
line