Class: NumbersAndWords::Strategies::FiguresConverter::Options::Ua::Gender

Inherits:
Object
  • Object
show all
Defined in:
lib/numbers_and_words/strategies/figures_converter/options/ua/gender.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(proxy, *args, &block) ⇒ Gender

Returns a new instance of Gender.



9
10
11
12
# File 'lib/numbers_and_words/strategies/figures_converter/options/ua/gender.rb', line 9

def initialize proxy, *args, &block
  @strategy = proxy.strategy
  @options = proxy.options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



7
8
9
# File 'lib/numbers_and_words/strategies/figures_converter/options/ua/gender.rb', line 7

def options
  @options
end

#strategyObject

Returns the value of attribute strategy.



7
8
9
# File 'lib/numbers_and_words/strategies/figures_converter/options/ua/gender.rb', line 7

def strategy
  @strategy
end

Instance Method Details

#resultObject



14
15
16
# File 'lib/numbers_and_words/strategies/figures_converter/options/ua/gender.rb', line 14

def result
  active? ? @options[:gender].to_sym : :male
end