Class: NumbersAndWords::Strategies::ArrayJoiner::Languages::Base
- Inherits:
-
Object
- Object
- NumbersAndWords::Strategies::ArrayJoiner::Languages::Base
- Includes:
- Families::Base
- Defined in:
- lib/numbers_and_words/strategies/array_joiner/languages/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#elements ⇒ Object
Returns the value of attribute elements.
-
#options ⇒ Object
Returns the value of attribute options.
-
#strategy ⇒ Object
Returns the value of attribute strategy.
-
#strings ⇒ Object
Returns the value of attribute strings.
-
#translations ⇒ Object
Returns the value of attribute translations.
Instance Method Summary collapse
-
#initialize(strategy) ⇒ Base
constructor
A new instance of Base.
- #join ⇒ Object
Methods included from Families::Base
#elements_logic, #union_element, #union_separator
Constructor Details
#initialize(strategy) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 15 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 10 def initialize strategy @strategy = strategy @elements = strategy.elements @translations = strategy.translations @options = strategy. end |
Instance Attribute Details
#elements ⇒ Object
Returns the value of attribute elements.
8 9 10 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 8 def elements @elements end |
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 8 def @options end |
#strategy ⇒ Object
Returns the value of attribute strategy.
8 9 10 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 8 def strategy @strategy end |
#strings ⇒ Object
Returns the value of attribute strings.
8 9 10 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 8 def strings @strings end |
#translations ⇒ Object
Returns the value of attribute translations.
8 9 10 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 8 def translations @translations end |
Instance Method Details
#join ⇒ Object
17 18 19 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 17 def join elements_logic end |