1 2 3 4 5 6 7 8 9 10 11
class User attr_reader :name def initialize(name) @name = name end def to_global_id "User##{name}" end end