Class: Links
- Inherits:
-
Object
- Object
- Links
- Defined in:
- lib/link2epub.rb
Instance Method Summary collapse
-
#initialize(file) ⇒ Links
constructor
A new instance of Links.
- #to_a ⇒ Object
Constructor Details
#initialize(file) ⇒ Links
Returns a new instance of Links.
11 12 13 |
# File 'lib/link2epub.rb', line 11 def initialize(file) @file = file end |
Instance Method Details
#to_a ⇒ Object
15 16 17 |
# File 'lib/link2epub.rb', line 15 def to_a File.readlines(@file) end |