Module: Gabuzomeu::Integer

Included in:
Bignum, Fixnum, Integer
Defined in:
lib/gabuzomeu.rb

Constant Summary collapse

GABUZOMEU =
%w(ga bu zo meu)

Instance Method Summary collapse

Instance Method Details

#to_s(base = 10) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/gabuzomeu.rb', line 6

def to_s(base = 10)
  if base == :gabuzomeu
    self.to_s(4).each_char.map { |char| GABUZOMEU[char.to_i] }.join(" ")
  else
    super(base)
  end
end