```ruby
module Torkify::Log
  class TestError < Struct.new(:filename, :lnum, :text, :type)
    def clean_text
      text.strip
    end
  end
end
```

Fix superclass mismatch by using struct
user
```ruby
module Torkify::Log
  class TestError
    attr_accessor :filename, :lnum, :text, :type

    def initialize(filename, lnum, text, type)
      @filename = filename
      @lnum     = lnum
      @text     = text
      @type     = type
    end

    def clean_text
      text.strip
    end
  end
end
```
assistant