lib/numbers_and_words/strategies/figures_converter/options/en/remove_hyphen.rb
# frozen_string_literal: true
module NumbersAndWords
module Strategies
module FiguresConverter
module Options
module En
class RemoveHyphen
attr_accessor :strategy, :options
def initialize(proxy, *_args)
@strategy = proxy.strategy
@options = proxy.options
end
def result
active? ? ' ' : '-'
end
private
def active?
@options[:remove_hyphen]
end
end
end
end
end
end
end