Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/extension_methods.rb
Overview
String
Instance Method Summary collapse
Instance Method Details
#to_x ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/extension_methods.rb', line 15 def to_x text = self text = text.gsub("&","&") text = text.gsub("<","<") text = text.gsub(">",">") return text end |