Ruby: use mixings instead of inheritance