You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
509 B
23 lines
509 B
//
|
|
// Identifier.swift
|
|
// R.swift Library
|
|
//
|
|
// Created by Mathijs Kadijk on 06-12-15.
|
|
// From: https://github.com/mac-cain13/R.swift.Library
|
|
// License: MIT License
|
|
//
|
|
|
|
import Foundation
|
|
|
|
/// Base protocol for all identifiers
|
|
public protocol IdentifierType: CustomStringConvertible {
|
|
/// Identifier string
|
|
var identifier: String { get }
|
|
}
|
|
|
|
extension IdentifierType {
|
|
/// CustomStringConvertible implementation, returns the identifier
|
|
public var description: String {
|
|
return identifier
|
|
}
|
|
}
|