Sha256: df8a46386febcca3f15db73c16a8bb713a25180ce01e73fe429f5c78dd468ef5
Contents?: true
Size: 1012 Bytes
Versions: 4
Compression:
Stored size: 1012 Bytes
Contents
// // NSNumber+Rubyfy.h // Domainchy // // Created by Marin Usalj on 11/15/12. // Copyright (c) 2012 mneorr.com | @mneorr | mneorr@gmail.com. All rights reserved. // #import <Foundation/Foundation.h> @interface NSNumber (ObjectiveSugar) - (void)times:(void(^)(void))block; - (void)timesWithIndex:(void(^)(int index))block; - (void)upto:(int)number do:(void(^)(int number))block; - (void)downto:(int)number do:(void(^)(int number))block; // Numeric inflections - (NSNumber *)seconds; - (NSNumber *)minutes; - (NSNumber *)hours; - (NSNumber *)days; - (NSNumber *)weeks; - (NSNumber *)fortnights; - (NSNumber *)months; - (NSNumber *)years; // There are singular aliases for the above methods - (NSNumber *)second; - (NSNumber *)minute; - (NSNumber *)hour; - (NSNumber *)day; - (NSNumber *)week; - (NSNumber *)fortnight; - (NSNumber *)month; - (NSNumber *)year; - (NSDate *)ago; - (NSDate *)ago:(NSDate *)time; - (NSDate *)since:(NSDate *)time; - (NSDate *)until:(NSDate *)time; - (NSDate *)fromNow; @end
Version data entries
4 entries across 4 versions & 1 rubygems