Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ya_kansuji/core_ext.rb

Overview

Core extension by kansuji

Instance Method Summary collapse

Instance Method Details

#_to_i_ya_kansuji_origObject



7
# File 'lib/ya_kansuji/core_ext.rb', line 7

alias _to_i_ya_kansuji_orig to_i

#to_i(base = nil) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/ya_kansuji/core_ext.rb', line 9

def to_i(base = nil)
  if base.nil? || base == :kan
    YaKansuji.to_i self
  else
    _to_i_ya_kansuji_orig(base)
  end
end