# File lib/mspec/runner/formatters/method.rb, line 36
36:   def before(state)
37:     super
38: 
39:     # The pattern for a method name is not correctly
40:     # restrictive but it is simplistic and useful
41:     # for our purpose.
42:     /^([A-Za-z_]+\w*)(\.|#|::)([^ ]+)/ =~ state.describe
43:     @key = $1 && $2 && $3 ? "#{$1}#{$2}#{$3}" : state.describe
44: 
45:     unless methods.key? @key
46:       h = methods[@key]
47:       h[:class]       = "#{$1}"
48:       h[:method]      = "#{$3}"
49:       h[:type]        = method_type $2
50:       h[:description] = state.description
51:     end
52: 
53:     tally.counter.examples     = 0
54:     tally.counter.expectations = 0
55:     tally.counter.failures     = 0
56:     tally.counter.errors       = 0
57: 
58:     @exceptions = []
59:   end