Method: Alx::Book#content
- Defined in:
- lib/alx/book.rb
#content ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/alx/book.rb', line 10 def content content = "" File.open( @file_name ) do | file | file.each { | line | content+=line } end return content end |