{"issue":{"created_at":"2011-11-05T15:09:45Z","state":"open","updated_at":"2011-11-24T06:27:40Z","user":{"gravatar_id":"062c05be3066f359170aa148ac95aaa9","id":47124,"url":"https://api.github.com/users/rgo","login":"rgo","avatar_url":"https://secure.gravatar.com/avatar/062c05be3066f359170aa148ac95aaa9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":9,"body":"Hi Jan,\r\n\r\n  I have a simple ruby file(a class with four methods):\r\n\r\n```ruby\r\nclass Foo\r\n  def a\r\n  end\r\n\r\n  def b\r\n  end\r\n\r\n  def Foo.c(item)\r\n  end\r\n\r\n  def self.d\r\n  end\r\nend\r\n```\r\n\r\nAnd tagbar panel show me:\r\n\r\n```\r\nFoo : Class\r\n  a\r\n  b\r\n  c\r\n  d\r\n```\r\nI think it should be showed as below:\r\n\r\n```\r\nFoo : Class\r\n  methods\r\n    a\r\n    b\r\n  singleton methods\r\n    c\r\n    d\r\n```\r\n\r\nTags generated by hand(same command used by tagbar):\r\n\r\n```\r\n$ 'ctags-exuberant'  -f -  --format=2  --excmd=pattern  --fields=nksSa  --extra=  --sort=yes  --language-force=ruby --ruby-kinds=mcfF  '/home/foo/Workspace/tagbar.rb'\r\nFoo\t/home/foo/Workspace/tagbar.rb\t/^class Foo$/;\"\tc\tline:1\r\na\t/home/foo/Workspace/tagbar.rb\t/^  def a$/;\"\tf\tline:3\tclass:Foo\r\nb\t/home/foo/Workspace/tagbar.rb\t/^  def b$/;\"\tf\tline:8\tclass:Foo\r\nc\t/home/foo/Workspace/tagbar.rb\t/^  def Foo.c(item)$/;\"\tF\tline:13\tclass:Foo\r\nd\t/home/foo/Workspace/tagbar.rb\t/^  def self.d$/;\"\tF\tline:17\tclass:Foo\r\n```\r\n\r\nThanks!","assignee":null,"id":2152283,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[],"number":48,"title":"Ruby methods not well folded","closed_at":null,"html_url":"https://github.com/majutsushi/tagbar/issues/48","milestone":null,"url":"https://api.github.com/repos/majutsushi/tagbar/issues/48"},"action":"created","comment":{"created_at":"2011-11-24T06:27:40Z","updated_at":"2011-11-24T06:27:40Z","user":{"gravatar_id":"bb2e388665fb3efe70f1ba489511e068","id":465527,"url":"https://api.github.com/users/majutsushi","login":"majutsushi","avatar_url":"https://secure.gravatar.com/avatar/bb2e388665fb3efe70f1ba489511e068?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I've just pushed a change that shows the proper header for children. Does that do what you want? I didn't increase the indent for the children under their header because that could lead to an amount of indent that is too high for some things to be read properly, but it should still be helpful.","id":2858768,"url":"https://api.github.com/repos/majutsushi/tagbar/issues/comments/2858768"}}