guestbook.rb
# Delete a signature from the book
Delete a signature from the book
Delete a signature from the book
def delete(name_to_delete)
        if @signatures.key?(name_to_delete)
            @signatures.delete(name_to_delete)
        else
            raise RuntimeError.new "#{name_to_delete} is not in the book"
        end
        return "Successfully removed #{name_to_delete}"
    end
def delete ( name_to_delete ) if @signatures . key? ( name_to_delete ) @signatures . delete ( name_to_delete ) else raise RuntimeError . new "#{name_to_delete} is not in the book" end return "Successfully removed #{name_to_delete}" end
Delete a signature from the book
Delete a signature from the book
name_to_delete
<not_specific>