class File
:nodoc:
def self.read_utf path
:nodoc:
def self.read_utf path r19 = "<3".respond_to? :encoding opt = r19 ? "r:bom|utf-8" : "rb" open path, opt do |f| if r19 then f.read else f.read.sub %r%\A\xEF\xBB\xBF%, "" end end end
:nodoc:
def self.read_utf path r19 = "<3".respond_to? :encoding opt = r19 ? "r:bom|utf-8" : "rb" open path, opt do |f| if r19 then f.read else f.read.sub %r%\A\xEF\xBB\xBF%, "" end end end