majutsushi/tagbar — Issue #48: Ruby methods not well folded
Author: rgo
Created: 2011-11-05 15:09:45+00:00
State: open

Hi Jan,

I have a simple ruby file(a class with four methods):

```ruby
class Foo
def a
end

def b
end

def Foo.c(item)
end

def self.d
end
end
```

And tagbar panel show me:

Foo : Class
a
b
c
d

I think it should be showed as below:
Foo : Class
methods
a
b
singleton methods
c
d

Tags generated by hand(same command used by tagbar):
```shell
$ 'ctags-exuberant' -f - --format=2 --excmd=pattern --fields=nksSa --extra= --sort=yes --language-force=ruby --ruby-kinds=mcfF '/home/foo/Workspace/tagbar.rb'
Foo	/home/foo/Workspace/tagbar.rb	/^class Foo$/;"	c	line:1
a	/home/foo/Workspace/tagbar.rb	/^ def a$/;"	f	line:3	class:Foo
b	/home/foo/Workspace/tagbar.rb	/^ def b$/;"	f	line:8	class:Foo
c	/home/foo/Workspace/tagbar.rb	/^ def Foo.c(item)$/;"	F	line:13	class:Foo
d	/home/foo/Workspace/tagbar.rb	/^ def self.d$/;"	F	line:17	class:Foo
```

Thanks!