class NumbersAndWords::Strategies::FiguresConverter::Options::En::RemoveHyphen
Attributes
options[RW]
strategy[RW]
Public Class Methods
new(proxy, *_args)
click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/options/en/remove_hyphen.rb, line 11 def initialize(proxy, *_args) @strategy = proxy.strategy @options = proxy.options end
Public Instance Methods
result()
click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/options/en/remove_hyphen.rb, line 16 def result active? ? ' ' : '-' end
Private Instance Methods
active?()
click to toggle source
# File lib/numbers_and_words/strategies/figures_converter/options/en/remove_hyphen.rb, line 22 def active? @options[:remove_hyphen] end