Module: Wareki::Kansuji

Defined in:
lib/wareki/kansuji.rb

Overview

DEPRECATED

Utilities of kansuji/integer converter.

Class Method Summary collapse

Class Method Details

.i_to_kan(num) ⇒ Object Also known as: i2k

DEPRECATED



18
19
20
21
# File 'lib/wareki/kansuji.rb', line 18

def i_to_kan(num)
  warn '[DEPRECATED] Wareki::Kansuji.i_to_kan: Please use ya_kansuji gem to handle kasuji'
  YaKansuji.to_kan num
end

.i_to_zen(num) ⇒ Object Also known as: i2z



23
24
25
26
# File 'lib/wareki/kansuji.rb', line 23

def i_to_zen(num)
  warn '[DEPRECATED] Wareki::Kansuji.i_to_zen: Use Wareki::Utils.i2z'
  Utils.i2z num
end

.kan_to_i(str) ⇒ Object Also known as: k2i

DEPRECATED



12
13
14
15
# File 'lib/wareki/kansuji.rb', line 12

def kan_to_i(str)
  warn '[DEPRECATED] Wareki::Kansuji.kan_to_i: Please use ya_kansuji gem to handle kansuji'
  Utils.k2i str
end