seattlerb/flog — pull request #14 by mihu (2012-11-18 18:20:22+00:00)
Title: class << self

Hi,

It seems that fog currently doesn't distinguish between instance methods and class methods defined in `class << self`. Example code

```ruby
class Test
class << self
def test
puts 'example'
end
end

def test
puts 'example'
end
end
```

This gives me only the last method

```
7.5: flog total
3.8: flog/method average

5.0: Test#none
2.5: Test#test example.rb:9
```

with the patch I get this

```
7.5: flog total
2.5: flog/method average

5.0: Test#none
1.5: Test::test example.rb:4
1.0: Test#test example.rb:9
```

The patch is a quick hack which works for me, don't exptect it to be pulled. Any ideas on how to make it less dirty?