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