aboutsummaryrefslogtreecommitdiff
path: root/ruby/types.rb
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-13 15:27:34 -0500
committerJoel Martin <github@martintribe.org>2014-04-13 15:27:34 -0500
commit3e8a088f48ea6030191c15457aafdd1b30387ca0 (patch)
tree84c761774ae26e14f1bd056ab3d8511e1d002d53 /ruby/types.rb
parent3a56f91a12ccad642227178c76f8d76cc42f81ee (diff)
downloadmal-3e8a088f48ea6030191c15457aafdd1b30387ca0.tar.gz
mal-3e8a088f48ea6030191c15457aafdd1b30387ca0.zip
Ruby: fixes to enable self-hosting.
Also, other cleanup and sync between steps.
Diffstat (limited to 'ruby/types.rb')
-rw-r--r--ruby/types.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/ruby/types.rb b/ruby/types.rb
index b16e391..72d24d1 100644
--- a/ruby/types.rb
+++ b/ruby/types.rb
@@ -31,8 +31,11 @@ def sequential?(obj)
return obj.is_a?(List) || obj.is_a?(Vector)
end
-class Function < Proc
+class Proc # re-open and add meta
attr_accessor :meta
+end
+
+class Function < Proc
attr_accessor :ast
attr_accessor :env
attr_accessor :params