Skip to content

Commit

Permalink
Use self instead of Self
Browse files Browse the repository at this point in the history
- prompted by #2
  • Loading branch information
chrisamanse committed Feb 11, 2016
1 parent 2fa351e commit 5cc715c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/NibLoadable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public extension NibLoadable {
/// By default, use the nib which have the same name as the name of the class,
/// and located in the bundle of that class
static var nib: UINib {
return UINib(nibName: String(Self), bundle: NSBundle(forClass: self))
return UINib(nibName: String(self), bundle: NSBundle(forClass: self))
}
}

Expand Down
2 changes: 1 addition & 1 deletion Sources/Reusable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public protocol NibReusable: Reusable, NibLoadable {}
public extension Reusable {
/// By default, use the name of the class as String for its reuseIdentifier
static var reuseIdentifier: String {
return String(Self)
return String(self)
}
}

Expand Down

0 comments on commit 5cc715c

Please sign in to comment.