In Files

Parent

Methods

File

Public Class Methods

read_utf(path) click to toggle source

Like File::read, but strips out a BOM marker if it exists.

     # File lib/hoe.rb, line 625
625:   def self.read_utf path
626:     open path, 'rb' do |f|
627:       f.read.sub /\A\xEF\xBB\xBF/, ''
628:     end
629:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.