merged
This commit is contained in:
commit
42f09f3b36
4
lol.rb
4
lol.rb
|
@ -1,3 +1,5 @@
|
|||
# Hi! Steffan was here...
|
||||
|
||||
require_relative 'find_algos'
|
||||
require_relative 'sorting_algos'
|
||||
require_relative 'Type'
|
||||
|
@ -5,8 +7,6 @@ require_relative 'Functional_Maggie'
|
|||
require_relative 'Filter'
|
||||
require_relative 'pdf-parser'
|
||||
|
||||
# Hi! Steffan was here...
|
||||
|
||||
prim_class, container, class_fields, container_params, container_methods_maggie = parse "flight.pdf"
|
||||
|
||||
name = prim_class
|
||||
|
|
|
@ -5,6 +5,7 @@ def parse(exam_text)
|
|||
reader = PDF::Reader.new(exam_text)
|
||||
|
||||
text = reader.pages[0].text.split "\n"
|
||||
|
||||
content = text.slice(3, 15).map {|x| x.split " "}.map {|x| x.filter {|y| y.length > 1 and y.strip != "*"} }.filter {|x| x.length > 0}
|
||||
|
||||
|
||||
|
@ -44,13 +45,8 @@ def parse(exam_text)
|
|||
Method_desc.new(*matches.captures)
|
||||
end
|
||||
|
||||
puts "prim #{prim_class}"
|
||||
puts "container #{container}"
|
||||
puts "class_f #{class_fields}"
|
||||
puts "container_p #{container_params}"
|
||||
puts "container_m #{container_methods}"
|
||||
|
||||
return prim_class, container, class_fields, container_params, container_methods
|
||||
end
|
||||
|
||||
parse("flower.pdf")
|
||||
puts parse("ferry.pdf")
|
||||
|
|
Loading…
Reference in New Issue
Block a user