lib/delorean/base.rb in delorean_lang-0.5.3 vs lib/delorean/base.rb in delorean_lang-0.5.4
- old
+ new
@@ -160,10 +160,10 @@
raise "bad method #{method}"
end
# FIXME: this is pretty hacky -- should probably merge
# whitelist and SIG mechanisms.
- if obj.is_a?(Class)
+ if obj.is_a?(Class) || obj.is_a?(Module)
_e[:_engine].parse_check_call_fn(method, args.count, obj)
return obj.send(msg, *args)
end
matcher = ::Delorean::Ruby.whitelist.matcher(method_name: msg)