Sha256: 0e67b21880baec2408fed5763304729711e4734df074f33bb2d8edaf17ce8ead
Contents?: true
Size: 546 Bytes
Versions: 5
Compression:
Stored size: 546 Bytes
Contents
module Apstrings class KVPair attr_reader :line, :raw_comment def initialize(line, comment) @line = line @raw_comment = comment end def key line.key unless line.key.nil? end def value # puts line line.value unless line.key.nil? end def comment if raw_comment.nil? @raw_comment = "" else raw_comment.gsub!(/(\/\*)|(\*\/)/,"") raw_comment.gsub!("\n", " ") raw_comment.gsub!(/\s+/, " ") raw_comment.strip end end end end
Version data entries
5 entries across 5 versions & 1 rubygems