Fixed issue mentioned in FIXME comment in RubyDNS::Server#match.

Changed 'block.class.name' to just 'block' in case/when clause.
This commit is contained in:
soh_cah_toa
2013-07-22 22:42:27 -04:00
parent b2aed14234
commit 9d4ea6c224

View File

@@ -94,8 +94,7 @@ module RubyDNS
id = generate_id
# FIXME Use block
case block.class.name
case block
when String
@rules << Rule.new(id, pattern, eval(block_src))
when Proc