diff --git a/lol.rb b/lol.rb index bc2e2e4..77e3e87 100644 --- a/lol.rb +++ b/lol.rb @@ -4,12 +4,11 @@ require_relative 'Type' require_relative 'functional_functions' require_relative 'Filter' - - # Hi! Steffan was here... container_obj = "ferries" + def construct_class(name_of_class, parameters, to_string_template) sorting_one = Type.new("String", "Name") sorting_two = Type.new("int", "Length") @@ -21,7 +20,7 @@ def construct_class(name_of_class, parameters, to_string_template) fields = "" parameters.each do |x| - fields += "private #{x[:type]} #{x[:name]};" + fields += "private #{x[:type]} #{x[:name]}; \n" end tmptmp = parameters.map { |x| "#{x[:type]} #{x[:name]}"} @@ -142,11 +141,11 @@ def construct_container(name, parameters, given_fields, methods, arraylist_name) fields = "" parameters.each do |x| - fields += "private #{x[:type]} #{x[:name]};" + fields += "private #{x[:type]} #{x[:name]};\n" end given_fields.each do |x| - fields += " private #{x[:type]} #{x[:name]};" + fields += " private #{x[:type]} #{x[:name]};\n" end maggie = methods.map do |x|