Class: Undies::Raw

Inherits:
String
  • Object
show all
Defined in:
lib/undies/raw.rb

Instance Method Summary collapse

Instance Method Details

#gsub(*args) ⇒ Object

A Raw string is one that is impervious to String#gsub and returns itself when ‘to_s` is called. Used to circumvent the default html escaping of markup



9
# File 'lib/undies/raw.rb', line 9

def gsub(*args);  self; end

#gsub!(*args) ⇒ Object



10
# File 'lib/undies/raw.rb', line 10

def gsub!(*args); nil;  end

#to_sObject



11
# File 'lib/undies/raw.rb', line 11

def to_s;         self; end