module

ActionView::Helpers::TextHelper

Instance methods

current_cycle
Source
cycle(*values : String) : String
Source
distance_of_time_in_words(from_time : Time, to_time : Time, include_seconds : Bool = false) : String

--- distance_of_time_in_words (Rails algorithm) --------------

Source
excerpt(text : String, phrase : String, radius : Int = 100, omission : String = "...") : String | Nil
Source
highlight(text : String, phrases : String | Array(String), highlighter : String = "<mark>\\1</mark>") : String
Source
pluralize(count : Int, word : String) : String
Source
reset_cycle
Source
simple_format(text : String) : String
Source
truncate(text : String, length : Int = 30, omission : String = "...", separator : String | Nil = nil, escape : Bool = true) : String
Source
word_wrap(text : String, line_width : Int = 80) : String
Source