Add newline to fields
This commit is contained in:
parent
c324a4a0a0
commit
d3e22bafd1
9
lol.rb
9
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|
|
||||
|
|
Loading…
Reference in New Issue
Block a user