lib/cutter/inspection.rb in cutter-0.8.8 vs lib/cutter/inspection.rb in cutter-0.8.9

- old
+ new

@@ -42,10 +42,10 @@ # Basic info method_name = eval('__method__', _binding) class_name = eval('self.class', _binding) - if (meth = method(method_name.to_sym)).respond_to? :source_location + if method_name && (meth = method(method_name.to_sym)).respond_to?(:source_location) source_path, source_number = meth.source_location end puts "\n%s `%s' %s" % ['method:'.__colorize__(:method), method_name.__colorize__(:method_name), ('(maximal tracing)' if max)]