提交 fd612b7c 编写于 作者: J Justin Collins

Remove method_missing from Sexp

because that behavior is not and should not be used,
while having it hides bugs because calling a method
on Sexp that does not exist
上级 2f57faed
......@@ -4,6 +4,10 @@
class Sexp
attr_reader :paren
def method_missing name, *args
raise NoMethodError.new("No method '#{name}' for Sexp", name, args)
end
def paren
@paren ||= false
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册