```ruby
require 'rugged'

module Git
  module CurrentBranch
    class Local
      def initialize(options = {})
        @path = options[:path]
        @repo = ::Rugged::Repository.new(@path)
      end

      def name
        #"refs/heads/master"
        @repo.head.name.gsub(%r!\Arefs/heads/(.*)\z!) { $1 }
      end
    end
  end
end
```

Move comment above method define
user
```ruby
require 'rugged'

module Git
  module CurrentBranch
    class Local
      def initialize(options = {})
        @path = options[:path]
        @repo = ::Rugged::Repository.new(@path)
      end

      # refs/heads/master => master
      def name
        @repo.head.name.gsub(%r!\Arefs/heads/(.*)\z!) { $1 }
      end
    end
  end
end
```
assistant