Class: Undies::Raw
- Inherits:
-
String
- Object
- String
- Undies::Raw
- Defined in:
- lib/undies/raw.rb
Instance Method Summary collapse
-
#gsub(*args) ⇒ Object
A Raw string is one that is impervious to String#gsub and returns itself when ‘to_s` is called.
- #gsub!(*args) ⇒ Object
- #to_s ⇒ Object
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_s ⇒ Object
11 |
# File 'lib/undies/raw.rb', line 11 def to_s; self; end |