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
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, #micro_separator, #union_element
Constructor Details
#initialize(strategy) ⇒ Base
Returns a new instance of Base.
12 13 14 15 16 17 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 12 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.
10 11 12 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 10 def elements @elements end |
#options ⇒ Object
Returns the value of attribute options.
10 11 12 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 10 def @options end |
#strategy ⇒ Object
Returns the value of attribute strategy.
10 11 12 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 10 def strategy @strategy end |
#strings ⇒ Object
Returns the value of attribute strings.
10 11 12 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 10 def strings @strings end |
#translations ⇒ Object
Returns the value of attribute translations.
10 11 12 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 10 def translations @translations end |
Instance Method Details
#join ⇒ Object
19 20 21 |
# File 'lib/numbers_and_words/strategies/array_joiner/languages/base.rb', line 19 def join elements_logic end |