Module: Haml::I18n::Extractor::Helpers::Highline
- Included in:
- Prompter
- Defined in:
- lib/haml-i18n-extractor/flow/helpers.rb
Instance Method Summary collapse
Instance Method Details
#highlight(str, color = :yellow) ⇒ Object
7 8 9 |
# File 'lib/haml-i18n-extractor/flow/helpers.rb', line 7 def highlight(str, color = :yellow) "<%= color('#{str.to_s}', :black, :on_#{color}) %>" end |