Class: NumbersAndWords::Strategies::FiguresConverter::Options::Base::Gender
- Inherits:
-
Object
- Object
- NumbersAndWords::Strategies::FiguresConverter::Options::Base::Gender
- Defined in:
- lib/numbers_and_words/strategies/figures_converter/options/base/gender.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
Instance Method Summary collapse
-
#initialize(proxy, *_args) ⇒ Gender
constructor
A new instance of Gender.
- #result ⇒ Object
Constructor Details
#initialize(proxy, *_args) ⇒ Gender
Returns a new instance of Gender.
11 12 13 14 |
# File 'lib/numbers_and_words/strategies/figures_converter/options/base/gender.rb', line 11 def initialize(proxy, *_args) @strategy = proxy.strategy @options = proxy. end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
9 10 11 |
# File 'lib/numbers_and_words/strategies/figures_converter/options/base/gender.rb', line 9 def @options end |
#strategy ⇒ Object
Returns the value of attribute strategy.
9 10 11 |
# File 'lib/numbers_and_words/strategies/figures_converter/options/base/gender.rb', line 9 def strategy @strategy end |
Instance Method Details
#result ⇒ Object
16 17 18 |
# File 'lib/numbers_and_words/strategies/figures_converter/options/base/gender.rb', line 16 def result active? ? @options[:gender].to_sym : :male end |