```ruby
module Compendium::Presenters
  class Base
    def initialize(template, object)
      @object = object
      @template = template
    end

  private

    def self.presents(name)
      define_method(name) do
        @object
      end
    end

    def method_missing(*args, &block)
      return @template.send(*args, &block) if @template.respond_to?(args.first)
      super
    end

    def respond_to_missing?(*args)
      return true if @template.respond_to?(*args)
      super
    end
  end
end```

Add a to_s method so that Presenters being dumped (ie. in exceptions) aren't 8 billion lines long
user
```ruby
module Compendium::Presenters
  class Base
    def initialize(template, object)
      @object = object
      @template = template
    end

    def to_s
      "#<#{self.class.name}:0x00#{'%x' % (object_id << 1)}>"
    end

  private

    def self.presents(name)
      define_method(name) do
        @object
      end
    end

    def method_missing(*args, &block)
      return @template.send(*args, &block) if @template.respond_to?(args.first)
      super
    end

    def respond_to_missing?(*args)
      return true if @template.respond_to?(*args)
      super
    end
  end
end```
assistant