class String
Public Instance Methods
escape_html()
click to toggle source
# File lib/engine2/core.rb, line 130 def escape_html Rack::Utils.escape_html(self) end
limit_length(num)
click to toggle source
# File lib/engine2/core.rb, line 121 def limit_length num s = self.strip if s.length > num s[0..num] + "..." else s end end