Module: Sawarineko

Defined in:
lib/sawarineko.rb,
lib/sawarineko/cli.rb,
lib/sawarineko/option.rb,
lib/sawarineko/version.rb,
lib/sawarineko/converter.rb

Overview

Get your Nya!

Defined Under Namespace

Modules: Version Classes: CLI, Converter, Option

Class Method Summary collapse

Class Method Details

.nya(source, encoding = Encoding::UTF_8) ⇒ Object

Make the source to Sawarineko. See Converter.

source - The String source to convert. encoding - The Encoding of the source (default: Encoding::UTF_8).

Returns the String converted to Sawarineko.



16
17
18
# File 'lib/sawarineko.rb', line 16

def self.nya(source, encoding = Encoding::UTF_8)
  Converter.new(encoding).convert(source)
end