lib/lisp/interpreter/core/object.rb in lisp-interpreter-0.5.4 vs lib/lisp/interpreter/core/object.rb in lisp-interpreter-0.5.5
- old
+ new
@@ -37,10 +37,10 @@
def quote?
start_with? '\''
end
def boolean?
- ['#t', '#f'].include? self
+ self == TRUE || self == FALSE
end
def type
fns = %w[list pair string number character boolean quote]
fns.each { |t| return '<' + t + '>' if send t + '?' }