Sha256: 7feb842d518625b6ef53b8ce41cdfd4bcf842b91a30b6ae46fc31fe813342626
Contents?: true
Size: 291 Bytes
Versions: 14
Compression:
Stored size: 291 Bytes
Contents
class User attr_reader :name def initialize(name) @name = name end def authenticated? if admin? or special_persmission? true else raise "not authenticated" end end def admin? @name == 'Bob' end def special_persmission? false end end
Version data entries
14 entries across 14 versions & 1 rubygems