Class: Estratto::Content

Inherits:
Object
  • Object
show all
Defined in:
lib/estratto/content.rb

Class Method Summary collapse

Class Method Details

.for(file_path) ⇒ Object



5
6
7
8
9
# File 'lib/estratto/content.rb', line 5

def self.for(file_path)
  content = File.read(file_path)
  encoded_content = Encoder.new(content).encode
  encoded_content.split("\n")
end