numbers_and_words 0.11.5 → 0.11.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.rdoc +49 -9
- data/lib/numbers_and_words.rb +2 -0
- data/lib/numbers_and_words/core_ext.rb +2 -0
- data/lib/numbers_and_words/core_ext/array.rb +2 -0
- data/lib/numbers_and_words/core_ext/float.rb +2 -0
- data/lib/numbers_and_words/core_ext/integer.rb +2 -0
- data/lib/numbers_and_words/helper_classes.rb +2 -0
- data/lib/numbers_and_words/helper_classes/array_extensions/helpers.rb +6 -4
- data/lib/numbers_and_words/helper_classes/figures_array.rb +8 -2
- data/lib/numbers_and_words/helper_classes/words_array.rb +4 -2
- data/lib/numbers_and_words/i18n.rb +2 -0
- data/lib/numbers_and_words/i18n/initialization.rb +2 -0
- data/lib/numbers_and_words/i18n/locales/numbers.kz.yml +7 -0
- data/lib/numbers_and_words/i18n/pluralization.rb +3 -1
- data/lib/numbers_and_words/i18n/plurals/cs.rb +2 -0
- data/lib/numbers_and_words/i18n/plurals/fr.rb +2 -0
- data/lib/numbers_and_words/i18n/plurals/lt.rb +2 -0
- data/lib/numbers_and_words/i18n/plurals/lv.rb +2 -0
- data/lib/numbers_and_words/i18n/plurals/plurals.rb +2 -0
- data/lib/numbers_and_words/i18n/plurals/ru.rb +2 -0
- data/lib/numbers_and_words/i18n/plurals/ua.rb +2 -0
- data/lib/numbers_and_words/strategies.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/base.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/cs.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/en-GB.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/en.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/es.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/families/base.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/fr.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/hu.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/pt-BR.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/ru.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/ua.rb +2 -0
- data/lib/numbers_and_words/strategies/array_joiner/languages/vi.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter.rb +4 -2
- data/lib/numbers_and_words/strategies/figures_converter/decorators.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/cs.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/cs/integral.rb +3 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en-GB/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/en/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/es.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/es/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/es/fractional.rb +3 -1
- data/lib/numbers_and_words/strategies/figures_converter/decorators/es/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/fr.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/fr/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/hu.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/hu/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/pt-BR/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ru.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ru/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ua.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/ua/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/fractional.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/decorators/vi/integral.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages.rb +3 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/cs.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/de.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/en-GB.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/en.rb +3 -7
- data/lib/numbers_and_words/strategies/figures_converter/languages/es.rb +11 -11
- data/lib/numbers_and_words/strategies/figures_converter/languages/et.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/families/base.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/families/cyrillic.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/families/helpers.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/fr.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/hu.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/hy.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/it.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/ka.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/kz.rb +12 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/lt.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/lv.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/nl.rb +3 -3
- data/lib/numbers_and_words/strategies/figures_converter/languages/pt-BR.rb +9 -3
- data/lib/numbers_and_words/strategies/figures_converter/languages/pt.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/ru.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/se.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/tr.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/ua.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/languages/vi.rb +4 -0
- data/lib/numbers_and_words/strategies/figures_converter/options.rb +14 -1
- data/lib/numbers_and_words/strategies/figures_converter/options/base.rb +5 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/base/gender.rb +30 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/base/ordinal.rb +28 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/base/remove_zero.rb +30 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/cs.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/cs/gender.rb +3 -14
- data/lib/numbers_and_words/strategies/figures_converter/options/cs/ordinal.rb +3 -15
- data/lib/numbers_and_words/strategies/figures_converter/options/cs/remove_zero.rb +3 -17
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/hundreds_with_union.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/ordinal.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/pronounced.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/remove_hyphen.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en-GB/remove_zero.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en/hundreds_with_union.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en/ordinal.rb +4 -11
- data/lib/numbers_and_words/strategies/figures_converter/options/en/pronounced.rb +6 -13
- data/lib/numbers_and_words/strategies/figures_converter/options/en/remove_hyphen.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/en/remove_zero.rb +3 -17
- data/lib/numbers_and_words/strategies/figures_converter/options/es.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/es/apocopated.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/es/gender.rb +3 -17
- data/lib/numbers_and_words/strategies/figures_converter/options/es/remove_zero.rb +3 -17
- data/lib/numbers_and_words/strategies/figures_converter/options/hu.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/hu/ordinal.rb +3 -50
- data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/gender.rb +3 -18
- data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/ordinal.rb +3 -15
- data/lib/numbers_and_words/strategies/figures_converter/options/pt-BR/remove_zero.rb +3 -17
- data/lib/numbers_and_words/strategies/figures_converter/options/ru.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/ru/gender.rb +3 -17
- data/lib/numbers_and_words/strategies/figures_converter/options/ua.rb +2 -0
- data/lib/numbers_and_words/strategies/figures_converter/options/ua/gender.rb +3 -17
- data/lib/numbers_and_words/translations.rb +3 -0
- data/lib/numbers_and_words/translations/base.rb +3 -1
- data/lib/numbers_and_words/translations/cs.rb +2 -0
- data/lib/numbers_and_words/translations/de.rb +2 -0
- data/lib/numbers_and_words/translations/en-GB.rb +2 -0
- data/lib/numbers_and_words/translations/en.rb +2 -0
- data/lib/numbers_and_words/translations/es.rb +10 -5
- data/lib/numbers_and_words/translations/et.rb +2 -0
- data/lib/numbers_and_words/translations/extensions/fraction_significance.rb +2 -0
- data/lib/numbers_and_words/translations/families/base.rb +2 -0
- data/lib/numbers_and_words/translations/families/cyrillic.rb +2 -0
- data/lib/numbers_and_words/translations/families/latin.rb +2 -0
- data/lib/numbers_and_words/translations/fr.rb +9 -7
- data/lib/numbers_and_words/translations/hu.rb +2 -0
- data/lib/numbers_and_words/translations/hy.rb +2 -0
- data/lib/numbers_and_words/translations/it.rb +2 -0
- data/lib/numbers_and_words/translations/ka.rb +3 -1
- data/lib/numbers_and_words/translations/kz.rb +9 -0
- data/lib/numbers_and_words/translations/lt.rb +2 -0
- data/lib/numbers_and_words/translations/lv.rb +2 -0
- data/lib/numbers_and_words/translations/nl.rb +3 -0
- data/lib/numbers_and_words/translations/pt-BR.rb +9 -2
- data/lib/numbers_and_words/translations/pt.rb +3 -0
- data/lib/numbers_and_words/translations/ru.rb +2 -0
- data/lib/numbers_and_words/translations/se.rb +2 -0
- data/lib/numbers_and_words/translations/tr.rb +2 -0
- data/lib/numbers_and_words/translations/ua.rb +2 -0
- data/lib/numbers_and_words/translations/vi.rb +5 -2
- data/lib/numbers_and_words/version.rb +3 -1
- data/lib/numbers_and_words/wrappers.rb +2 -0
- data/lib/numbers_and_words/wrappers/float.rb +3 -1
- data/lib/numbers_and_words/wrappers/integer.rb +2 -0
- metadata +28 -22
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'numbers_and_words/strategies/figures_converter/languages'
|
2
4
|
require 'numbers_and_words/strategies/figures_converter/options'
|
3
5
|
require 'numbers_and_words/strategies/figures_converter/decorators'
|
@@ -23,8 +25,8 @@ module NumbersAndWords
|
|
23
25
|
|
24
26
|
private
|
25
27
|
|
26
|
-
def around
|
27
|
-
decorator.run
|
28
|
+
def around(&block)
|
29
|
+
decorator.run(&block)
|
28
30
|
end
|
29
31
|
end
|
30
32
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'numbers_and_words/strategies/figures_converter/decorators/cs/base'
|
2
4
|
require 'numbers_and_words/strategies/figures_converter/decorators/cs/fractional'
|
3
5
|
require 'numbers_and_words/strategies/figures_converter/decorators/cs/integral'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module NumbersAndWords
|
2
4
|
module Strategies
|
3
5
|
module FiguresConverter
|
@@ -14,6 +16,7 @@ module NumbersAndWords
|
|
14
16
|
def integral_significance
|
15
17
|
figs = figures.reverse.join.to_i
|
16
18
|
return nil if @options[:remove_zero] && figs.zero?
|
19
|
+
|
17
20
|
@strategy.translations.integral figs
|
18
21
|
end
|
19
22
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'numbers_and_words/strategies/figures_converter/decorators/en-GB/base'
|
2
4
|
require 'numbers_and_words/strategies/figures_converter/decorators/en-GB/fractional'
|
3
5
|
require 'numbers_and_words/strategies/figures_converter/decorators/en-GB/integral'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'numbers_and_words/strategies/figures_converter/decorators/en/base'
|
2
4
|
require 'numbers_and_words/strategies/figures_converter/decorators/en/fractional'
|
3
5
|
require 'numbers_and_words/strategies/figures_converter/decorators/en/integral'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'numbers_and_words/strategies/figures_converter/decorators/es/base'
|
2
4
|
require 'numbers_and_words/strategies/figures_converter/decorators/es/fractional'
|
3
5
|
require 'numbers_and_words/strategies/figures_converter/decorators/es/integral'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'numbers_and_words/strategies/figures_converter/decorators/fr/base'
|
2
4
|
require 'numbers_and_words/strategies/figures_converter/decorators/fr/fractional'
|
3
5
|
require 'numbers_and_words/strategies/figures_converter/decorators/fr/integral'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'numbers_and_words/strategies/figures_converter/decorators/hu/base'
|
2
4
|
require 'numbers_and_words/strategies/figures_converter/decorators/hu/fractional'
|
3
5
|
require 'numbers_and_words/strategies/figures_converter/decorators/hu/integral'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'numbers_and_words/strategies/figures_converter/decorators/pt-BR/base'
|
2
4
|
require 'numbers_and_words/strategies/figures_converter/decorators/pt-BR/fractional'
|
3
5
|
require 'numbers_and_words/strategies/figures_converter/decorators/pt-BR/integral'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'numbers_and_words/strategies/figures_converter/decorators/ru/base'
|
2
4
|
require 'numbers_and_words/strategies/figures_converter/decorators/ru/fractional'
|
3
5
|
require 'numbers_and_words/strategies/figures_converter/decorators/ru/integral'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'numbers_and_words/strategies/figures_converter/decorators/ua/base'
|
2
4
|
require 'numbers_and_words/strategies/figures_converter/decorators/ua/fractional'
|
3
5
|
require 'numbers_and_words/strategies/figures_converter/decorators/ua/integral'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'numbers_and_words/strategies/figures_converter/decorators/vi/base'
|
2
4
|
require 'numbers_and_words/strategies/figures_converter/decorators/vi/fractional'
|
3
5
|
require 'numbers_and_words/strategies/figures_converter/decorators/vi/integral'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'numbers_and_words/strategies/figures_converter/languages/families/helpers'
|
2
4
|
require 'numbers_and_words/strategies/figures_converter/languages/families/base'
|
3
5
|
require 'numbers_and_words/strategies/figures_converter/languages/base'
|
@@ -20,6 +22,7 @@ require 'numbers_and_words/strategies/figures_converter/languages/pt'
|
|
20
22
|
require 'numbers_and_words/strategies/figures_converter/languages/se'
|
21
23
|
require 'numbers_and_words/strategies/figures_converter/languages/tr'
|
22
24
|
require 'numbers_and_words/strategies/figures_converter/languages/hy'
|
25
|
+
require 'numbers_and_words/strategies/figures_converter/languages/kz'
|
23
26
|
|
24
27
|
require 'numbers_and_words/strategies/figures_converter/languages/families/cyrillic'
|
25
28
|
require 'numbers_and_words/strategies/figures_converter/languages/ru'
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module NumbersAndWords
|
2
4
|
module Strategies
|
3
5
|
module FiguresConverter
|
@@ -27,14 +29,8 @@ module NumbersAndWords
|
|
27
29
|
def strings_logic
|
28
30
|
if @options.pronounced.active?
|
29
31
|
@options.pronounced.process self, @figures
|
30
|
-
elsif @figures.capacity_count
|
31
|
-
number_without_capacity_to_words + complex_number_to_words
|
32
|
-
elsif @figures.hundreds
|
33
|
-
hundreds_number_to_words
|
34
|
-
elsif @figures.tens || @figures.ones
|
35
|
-
simple_number_to_words
|
36
32
|
else
|
37
|
-
|
33
|
+
super
|
38
34
|
end
|
39
35
|
end
|
40
36
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module NumbersAndWords
|
2
4
|
module Strategies
|
3
5
|
module FiguresConverter
|
@@ -18,14 +20,10 @@ module NumbersAndWords
|
|
18
20
|
end
|
19
21
|
|
20
22
|
def tens_with_ones
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
else
|
26
|
-
super({ gender: gender,
|
27
|
-
is_apocopated: one_apocopated? })
|
28
|
-
end
|
23
|
+
options = { gender: gender, is_apocopated: one_apocopated? }
|
24
|
+
return @translations.twenties_with_ones(@figures, options) if @figures.tens == 2
|
25
|
+
|
26
|
+
super(options)
|
29
27
|
end
|
30
28
|
|
31
29
|
def hundreds
|
@@ -35,6 +33,7 @@ module NumbersAndWords
|
|
35
33
|
|
36
34
|
def megs
|
37
35
|
return @translations.megs(1, number: 1) if long_scale_thousand?
|
36
|
+
|
38
37
|
super({ number: @figures.number_in_capacity(@current_capacity) })
|
39
38
|
end
|
40
39
|
|
@@ -49,12 +48,12 @@ module NumbersAndWords
|
|
49
48
|
|
50
49
|
def long_scale_thousand?
|
51
50
|
@current_capacity.odd? &&
|
52
|
-
|
51
|
+
!@figures.number_in_capacity(@current_capacity - 1).zero?
|
53
52
|
end
|
54
53
|
|
55
54
|
def one_apocopated?
|
56
|
-
|
57
|
-
|
55
|
+
@current_capacity.positive? && @figures.ones == 1 ||
|
56
|
+
@options.apocopated.result
|
58
57
|
end
|
59
58
|
|
60
59
|
def hundred_apocopated?
|
@@ -65,6 +64,7 @@ module NumbersAndWords
|
|
65
64
|
@current_capacity ||= 0
|
66
65
|
|
67
66
|
return :male if @current_capacity >= 2
|
67
|
+
|
68
68
|
@options.gender.result
|
69
69
|
end
|
70
70
|
|