Skip to content

Commit

Permalink
Merge pull request modo-studio#106 from max-potapov/patch-2
Browse files Browse the repository at this point in the history
making public methods visible
  • Loading branch information
Pedro Piñera Buendía committed Jan 3, 2015
2 parents eccd3cd + 502d765 commit 2f2588a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions library/Core/SugarRecordResults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class SugarRecordResults: SequenceType

:returns: Object at the passed index (if exists)
*/
func objectAtIndex(index: UInt) -> AnyObject!
public func objectAtIndex(index: UInt) -> AnyObject!
{
return results.objectAtIndex(index, finder: finder)
}
Expand All @@ -61,7 +61,7 @@ public class SugarRecordResults: SequenceType

:returns: First object (if exists)
*/
func firstObject() -> AnyObject!
public func firstObject() -> AnyObject!
{
return results.firstObject(finder: finder)
}
Expand All @@ -71,15 +71,15 @@ public class SugarRecordResults: SequenceType

:returns: Last object (if exists)
*/
func lastObject() -> AnyObject!
public func lastObject() -> AnyObject!
{
return results.lastObject(finder: finder)
}

/**
* Access to the element at a given index
*/
subscript (index: Int) -> AnyObject!
public subscript (index: Int) -> AnyObject!
{
get {
return results.objectAtIndex(UInt(index), finder: finder)
Expand Down Expand Up @@ -115,4 +115,4 @@ public class SRResultsGenerator: GeneratorType {
}
return self.results[nextIndex--]
}
}
}

0 comments on commit 2f2588a

Please sign in to comment.