119cb1a977
modified: c/ff modified: c/main.rb modified: m/ReadFile.rb
20 lines
252 B
Ruby
20 lines
252 B
Ruby
class ReadFile
|
|
def initialize(pFic)
|
|
@fic = File.open(pFic, "r")
|
|
end
|
|
|
|
def getALL
|
|
all = @fic.read
|
|
return all
|
|
end
|
|
|
|
def getUrls
|
|
txt = self.getALL
|
|
url = txt.match /http[^\s]*/
|
|
return url
|
|
end
|
|
end
|
|
|
|
class TestLink
|
|
|
|
end |