require 'model/Property'
class PropertyParser
- attr_accessor (:seperate)
+ attr_accessor :seperate
def initialize(seperate)
- if (seperate.nil?())
+ if seperate.nil? then
@seperate = ":";
else
@seperate = seperate;
f = File.open(filePath,"r");
f.each_line do |line|
- if (line.empty? || line.eql?("\n")) then
+ if line.empty? || line.eql?("\n") then
if not properties.empty?() then
propertySection.push(properties);
properties = Array.new
return propertySection;
end
-end
\ No newline at end of file
+end