Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/hoe.rb
Overview
:nodoc:
Class Method Summary collapse
-
.read_utf(path) ⇒ Object
Like File::read, but strips out a BOM marker if it exists.
Class Method Details
.read_utf(path) ⇒ Object
Like File::read, but strips out a BOM marker if it exists.
987 988 989 990 991 |
# File 'lib/hoe.rb', line 987 def self.read_utf path open path, "r:bom|utf-8" do |f| f.read end end |