Class: NumbersAndWords::Strategies::ArrayJoiner::Languages::EnGb

Inherits:
Base
  • Object
show all
Defined in:
lib/numbers_and_words/strategies/array_joiner/languages/en-GB.rb

Instance Attribute Summary

Attributes inherited from Base

#elements, #options, #strategy, #strings, #translations

Instance Method Summary collapse

Methods inherited from Base

#initialize, #join

Methods included from Families::Base

#micro_separator

Constructor Details

This class inherits a constructor from NumbersAndWords::Strategies::ArrayJoiner::Languages::Base

Instance Method Details

#elements_logicObject


8
9
10
# File 'lib/numbers_and_words/strategies/array_joiner/languages/en-GB.rb', line 8

def elements_logic
  @elements.join union_element
end

#union_elementObject


12
13
14
# File 'lib/numbers_and_words/strategies/array_joiner/languages/en-GB.rb', line 12

def union_element
  @elements.first.empty? ? "#{micro_separator} " : super
end