Avoide error at weired indentation of Ruby code.

This commit is contained in:
Johan Holmberg
2009-05-10 22:23:33 +00:00
committed by holmberg556
parent 3fcf7d7d27
commit 9e417d8700

@ -46,7 +46,7 @@ module Cmdtest
for key in @new_filter.keys.sort for key in @new_filter.keys.sort
f.puts "%s\t%s" % [ f.puts "%s\t%s" % [
key, key,
@new_filter[key], @new_filter[key] || "unknown",
] ]
end end
end end
@ -102,7 +102,7 @@ module Cmdtest
method_i = i method_i = i
## p [:method_begin, method] ## p [:method_begin, method]
when method && line =~ /^#{method_indent}end\b/ #... when klass && method && line =~ /^#{method_indent}end\b/ #...
## p [:method_end, method] ## p [:method_end, method]
key = _method_key(file, klass, method) key = _method_key(file, klass, method)
method_signatures[key] = _method_signature(lines[method_i..i]) method_signatures[key] = _method_signature(lines[method_i..i])