Permalink
Browse files

Fix for anonymous modules for Rubinius in 1.9-mode.

  • Loading branch information...
1 parent 85aa2d4 commit 141c8d8b4acd31214bea199592299311bd06a96d @oggy committed May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/looksee/adapter/rubinius.rb
@@ -51,7 +51,7 @@ def module_name(mod)
raise TypeError, "expected module, got #{mod.class}"
if ::Rubinius::Type.respond_to?(:module_name)
- ::Rubinius::Type.module_name(mod)
+ ::Rubinius::Type.module_name(mod) || ''
else
mod.__name__
end

0 comments on commit 141c8d8

Please sign in to comment.