end
#InstanceMethods
+ def find_user
+ @operators.each do |operator|
+ return operator if operator.is_a?(User)
+ return operator.user if operator.is_a?(Author)
+ return operator.user if operator.is_a?(Artist)
+ end
+ nil
+ end
+
def find_author
@operators.each do |operator|
return operator if operator.is_a?(Author)
nil
end
+ def user
+ return @user if @user
+ @user = find_user
+ end
+
def author
return @author if @author
@author = find_author