lib/parse/model/acl.rb
def apply_role(name, read = nil, write = nil)
      name = name.name if name.is_a?(Parse::Role)
      apply("role:#{name}", read, write)
    end
def apply_role(name, read = nil, write = nil)
      name = name.name if name.is_a?(Parse::Role)
      apply("role:#{name}", read, write)
    end
def apply_role ( name , read = nil , write = nil ) name = name . name if name . is_a? ( Parse :: Role ) apply ( "role:#{name}" , read , write ) end
Apply a {Parse::Role} to this ACL.
 @overload apply_role(role, read = nil, write = nil)
  @param role [Parse::Role] the role object.
  @param read [Boolean] the read permission.
  @param write [Boolean] the write permission.
 @overload apply_role(role_name, read = nil, write = nil)
  @param role_name [String] the name of the role.
  @param read [Boolean] the read permission.
  @param write [Boolean] the write permission.
Apply a { Parse :: Role } to this ACL .