```ruby
register_handler(Class, ->(attribute, value) { attribute.eq(value.name) })