```ruby
require 'rake'

module TTNT
  class << self
    def root_dir
      @root_dir ||= Rake.application.find_rakefile_location[1]
    end

    def root_dir=(dir)
      @root_dir = dir
    end
  end
end
```

Use class variable rather than instance variable
user
```ruby
require 'rake'

module TTNT
  class << self
    def root_dir
      @@root_dir ||= Rake.application.find_rakefile_location[1]
    end

    def root_dir=(dir)
      @@root_dir = dir
    end
  end
end
```
assistant