Class: MarkdownMetrics::FileLines

Inherits:
Object
  • Object
show all
Defined in:
lib/markdown_metrics/file_lines.rb

Class Method Summary collapse

Class Method Details

.from(file_path) ⇒ Object



5
6
7
8
# File 'lib/markdown_metrics/file_lines.rb', line 5

def self.from(file_path)
  content = File.open(file_path).read
  content.split("\n")
end