Class: Forspell::Loaders::C

Inherits:
Source show all
Defined in:
lib/forspell/loaders/c.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #read

Constructor Details

This class inherits a constructor from Forspell::Loaders::Base

Instance Method Details

#inputObject



6
7
8
9
10
# File 'lib/forspell/loaders/c.rb', line 6

def input
  res = super
  res.encode('UTF-8', invalid: :replace, replace: '?') unless res.valid_encoding?
  res
end