aboutsummaryrefslogtreecommitdiff
path: root/ruby/types.rb
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-10 23:20:11 -0500
committerJoel Martin <github@martintribe.org>2014-04-10 23:20:11 -0500
commit01e254893fede2c88fa7d2210da9e03af3a12617 (patch)
tree5c81a250a273269fc493b57c1aaf5d58a6b7dcaa /ruby/types.rb
parent46dbc0d87a8ceee9255808ee28792d625bc317fc (diff)
downloadmal-01e254893fede2c88fa7d2210da9e03af3a12617.tar.gz
mal-01e254893fede2c88fa7d2210da9e03af3a12617.zip
Ruby: add step7_quote
Diffstat (limited to 'ruby/types.rb')
-rw-r--r--ruby/types.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/ruby/types.rb b/ruby/types.rb
index 16d8d1e..6f22041 100644
--- a/ruby/types.rb
+++ b/ruby/types.rb
@@ -6,6 +6,10 @@ end
class Vector < Array
end
+def sequential?(obj)
+ return obj.is_a?(List) || obj.is_a?(Vector)
+end
+
class Function < Proc
attr_accessor :ast
attr_accessor :env