Class: Bangou

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

Defined Under Namespace

Classes: OutOfRangeException

Class Method Summary collapse

Class Method Details

.in_range?(int) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/bangou.rb', line 14

def self.in_range? int
  int >= 0 and int < 100000000
end

.integer_to_japanese_numerals(int) ⇒ Object



6
7
8
# File 'lib/bangou.rb', line 6

def self.integer_to_japanese_numerals int
   convert_number(int, :numeral)
end

.integer_to_japanese_text(int) ⇒ Object



10
11
12
# File 'lib/bangou.rb', line 10

def self.integer_to_japanese_text int
   convert_number(int, :text)
end