@@ -27,7 +27,7 @@ module GedParse
27
27
class GedDetailList
28
28
attr_reader :list
29
29
30
- def initialize
30
+ def initialize
31
31
@list = [ ]
32
32
end
33
33
@@ -48,7 +48,7 @@ def add_detail(level, tag, val)
48
48
when "CONT" then last_detail [ :value ] = last_detail [ :value ] . to_s + "\n " + val . to_s
49
49
when "CONC" then last_detail [ :value ] = last_detail [ :value ] . to_s + val . to_s
50
50
else
51
- h [ :field ] = last_detail [ :field ] + '_' + tag . to_s
51
+ h [ :field ] = last_detail [ :field ] + '_' + tag . to_s
52
52
last_detail [ :children ] . push h
53
53
end
54
54
end
@@ -229,7 +229,7 @@ def initialize(file_name)
229
229
refresh
230
230
end
231
231
232
- def refresh
232
+ def refresh
233
233
@individuals = [ ]
234
234
@families = [ ]
235
235
@notes = [ ]
@@ -270,7 +270,7 @@ def refresh
270
270
when "INDI" then @individuals . push section if section
271
271
when "FAM" then @families . push section if section
272
272
when "NOTE" then @notes . push section if section
273
- else
273
+ else
274
274
@sections . push section if section
275
275
end
276
276
@@ -284,7 +284,7 @@ def refresh
284
284
#create a family
285
285
section = Family . new ( tag )
286
286
section_type = 'FAM'
287
- else
287
+ else
288
288
#create a general section
289
289
if not rest . nil? and rest [ 0 ..3 ] == "NOTE"
290
290
section = Note . new ( tag )
@@ -326,14 +326,14 @@ def refresh
326
326
end
327
327
end
328
328
end
329
- end
329
+ end
330
330
331
331
# add the last section
332
- case section_type
332
+ case section_type
333
333
when "INDI" then @individuals . push section if section
334
334
when "FAM" then @families . push section if section
335
335
when "NOTE" then @notes . push section if section
336
- else
336
+ else
337
337
@sections . push section if section
338
338
end
339
339
@@ -358,7 +358,7 @@ def find_by_family_gid(gid)
358
358
359
359
def find_by_individual_gid ( gid )
360
360
@individuals . each do |i |
361
- return i if i . gid == gid
361
+ return i if i . gid == gid
362
362
end
363
363
return nil
364
364
end
0 commit comments