aboutsummaryrefslogtreecommitdiff
path: root/ruby/reader.rb
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-10 22:24:58 -0500
committerJoel Martin <github@martintribe.org>2014-04-10 22:24:58 -0500
commit8bf53bec72d27d7d895b39812ffae1e990425158 (patch)
treea658f2900b9ceff44522780b3d5c28afb1abf0e2 /ruby/reader.rb
parentb5f469de182a3e95b2d968ddccf2e2f9b77a3dc2 (diff)
downloadmal-8bf53bec72d27d7d895b39812ffae1e990425158.tar.gz
mal-8bf53bec72d27d7d895b39812ffae1e990425158.zip
Ruby: step4_if_fn_do with core functions.
Diffstat (limited to 'ruby/reader.rb')
-rw-r--r--ruby/reader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby/reader.rb b/ruby/reader.rb
index d224e9c..0c113e3 100644
--- a/ruby/reader.rb
+++ b/ruby/reader.rb
@@ -21,7 +21,7 @@ def tokenize(str)
end
def parse_str(t)
- return t[1..-2].gsub(/\\"/, "\"").gsub(/\\n/, "\n")
+ return t[1..-2].gsub(/\\"/, '"').gsub(/\\n/, "\n") # unescape
end
def read_atom(rdr)