Class: String::HtmlString

Inherits:
String show all
Defined in:
lib/olelo/html_safe.rb

Instance Method Summary collapse

Methods inherited from String

#/, #cleanpath, #ends_with?, #starts_with?, #try_encoding

Instance Method Details

#html_safeObject



13
14
15
# File 'lib/olelo/html_safe.rb', line 13

def html_safe
  self
end

#html_safe?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/olelo/html_safe.rb', line 9

def html_safe?
  true
end

#to_sObject



17
18
19
# File 'lib/olelo/html_safe.rb', line 17

def to_s
  self
end