Module: UI::TextHelpers
- Defined in:
- library/general/src/lib/ui/text_helpers.rb
Overview
Provides a set of methods to manipulate and transform UI text
Instance Method Summary collapse
- #div_with_direction(text, lang = nil) ⇒ Object
- #head(text, max_lines, **args) ⇒ Object
- #plain_text(text, **args, &block) ⇒ Object
- #wrap_text(text, *args, **kwa) ⇒ Object
Instance Method Details
#div_with_direction(text, lang = nil) ⇒ Object
43 44 45 |
# File 'library/general/src/lib/ui/text_helpers.rb', line 43 def div_with_direction(text, lang = nil) text.div_with_direction(lang) end |
#head(text, max_lines, **args) ⇒ Object
38 39 40 |
# File 'library/general/src/lib/ui/text_helpers.rb', line 38 def head(text, max_lines, **args) text.head(max_lines, **args) end |
#plain_text(text, **args, &block) ⇒ Object
28 29 30 |
# File 'library/general/src/lib/ui/text_helpers.rb', line 28 def plain_text(text, **args, &block) text.plain_text(**args, &block) end |
#wrap_text(text, *args, **kwa) ⇒ Object
33 34 35 |
# File 'library/general/src/lib/ui/text_helpers.rb', line 33 def wrap_text(text, *args, **kwa) text.wrap_text(*args, **kwa) end |