Since there is only a single protected method, I would be more inclined to define this attribute higher up in the class body and pass in the method name explicitly to protected, eg:

```ruby
attr_reader :repositories
protected :repositories
```