Sha256: e2441a91fb2226c918e6f751531a9448de2448d578949bc900812bf4ca8cf00d
Contents?: true
Size: 395 Bytes
Versions: 13
Compression:
Stored size: 395 Bytes
Contents
class User attr_accessor :param def initialize(parent) @parent = parent end def exists? @parent.target("User #{@param} exists?") @parent.run "id #{@param}" @parent.expect_one @param end def is_member_of?(groupname) @parent.target("User #{@param} is member of #{groupname}?") @parent.run "id #{@param}" @parent.expect_one [@param, groupname] end end
Version data entries
13 entries across 13 versions & 1 rubygems