Sha256: 02943e63ece967b547b941bbd5d0efd445cd5128a0cd24a48c0be97219fc26c2

Contents?: true

Size: 112 Bytes

Versions: 10

Compression:

Stored size: 112 Bytes

Contents

module Cranium::FileUtils

  def self.line_count(file_path)
    File.read(file_path).each_line.count
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cranium-0.8.1 lib/cranium/file_utils.rb
cranium-0.8 lib/cranium/file_utils.rb
cranium-0.7 lib/cranium/file_utils.rb
cranium-0.6.1 lib/cranium/file_utils.rb
cranium-0.5 lib/cranium/file_utils.rb
cranium-0.4.3 lib/cranium/file_utils.rb
cranium-0.4.2 lib/cranium/file_utils.rb
cranium-0.4.1 lib/cranium/file_utils.rb
cranium-0.4 lib/cranium/file_utils.rb
cranium-0.3.1 lib/cranium/file_utils.rb