Module: Ocho

Extended by:
Ocho
Included in:
Ocho
Defined in:
lib/ocho.rb,
lib/ocho/version.rb,
lib/ocho/converter.rb

Defined Under Namespace

Classes: Converter

Constant Summary collapse

VERSION =
'0.0.1'

Instance Method Summary collapse

Instance Method Details

#encoding(text) ⇒ Object



7
8
9
# File 'lib/ocho.rb', line 7

def encoding(text)
  Converter.new(text).encoding
end

#read(filename) ⇒ Object



11
12
13
14
# File 'lib/ocho.rb', line 11

def read(filename)
  content = File.read(filename)
  Converter.new(content).to_utf8
end