Class: String

Inherits:
Object show all
Defined in:
lib/iron/web/string.rb

Overview

Add Rails-like html safeness awareness to strings

Direct Known Subclasses

HtmlSafeString

Instance Method Summary collapse

Instance Method Details

#html_safeObject

Return a copy of the string marked as being html safe (ie not requiring further encoding)



17
18
19
# File 'lib/iron/web/string.rb', line 17

def html_safe
  HtmlSafeString.new(self)
end