Class: Erector::RawString

Inherits:
String
  • Object
show all
Defined in:
lib/erector/raw_string.rb

Overview

A string that has a special type so Erector knows to render it directly, not HTML-escaped

Instance Method Summary collapse

Instance Method Details

#html_safe?Boolean

Returns:

  • (Boolean)

4
5
6
# File 'lib/erector/raw_string.rb', line 4

def html_safe?
  true
end

#to_sObject


8
9
10
# File 'lib/erector/raw_string.rb', line 8

def to_s
  self
end