You probably don't need to use `self.` here. Also, I wonder if this will work, allowing you to remove the `#module_eval`?

```ruby
module.define_singleton_method :included do |object|
  super(object)
  object.send :define_singleton_method :attribute, attribute_method
end
```