In Ruby there are four different getter and setter methods for instance variables,
attr :dilithium, true
One difference is that
attr_accessor and friends are clearer, and the optional boolean argument to
attr is now deprecated. Other than that, and the fact that
attr has no documentation, there's no real difference.