Probably best to put a quick code comment above. Something like this will suffice:

```ruby
# Simple generator that yields any node that does not
# have the same name as node n
```