Sha256: 46293b6ff035c7b184462443897c4071be88238712655be43e76cb4c55bb1003
Contents?: true
Size: 278 Bytes
Versions: 45
Compression:
Stored size: 278 Bytes
Contents
class String def html_safe # Convert to a real string (opal uses native strings normally, so wrap so we can # use instance variables) str = String.new(self) str.instance_variable_set('@html_safe', true) str end def html_safe? @html_safe end end
Version data entries
45 entries across 45 versions & 1 rubygems