Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/clj/types.rb
Instance Method Summary collapse
Instance Method Details
#to_clj ⇒ Object
144 145 146 147 148 149 150 151 |
# File 'lib/clj/types.rb', line 144 def to_clj (*) result = (encode('UTF-16be') rescue self).inspect result.gsub!(/(^|[^\\])\\e/, '\1\u001b') result.gsub!(/(^|[^\\])\\a/, '\1\u0003') result end |