Class: HammerCLI::Output::Formatters::InlineTextFormatter
Instance Method Summary
collapse
inherited, #match?, #tags
Instance Method Details
179
180
181
|
# File 'lib/hammer_cli/output/formatters.rb', line 179
def format(text, _field_params = {})
text.to_s.tr("\r\n", ' ')
end
|
#required_features ⇒ Object
173
174
175
176
177
|
# File 'lib/hammer_cli/output/formatters.rb', line 173
def required_features
return %i[serialized inline] if tags.empty?
tags.map { |t| HammerCLI::Output::Utils.tag_to_feature(t) }
end
|