Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
Kevin Malakoff committed Aug 2, 2012
1 parent 250c7fe commit eca4267
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Lib/SS.h
Expand Up @@ -30,4 +30,7 @@
#import "SSTypes.h" #import "SSTypes.h"


@interface SS : NSObject @interface SS : NSObject

+ (NSS*)VERSION;

@end @end
5 changes: 5 additions & 0 deletions Lib/SS.m
Expand Up @@ -29,5 +29,10 @@


#import "SS.h" #import "SS.h"


static NSS* SSVERSION = @"0.1.0";

@implementation SS @implementation SS

+ (NSS*)VERSION { return SSVERSION; }

@end @end
7 changes: 5 additions & 2 deletions README.md
Expand Up @@ -197,6 +197,10 @@ OKV({@"int", N.I(1)}, {@"float", N.F(2.0)}).delete_(@"int").hasOwnProperty(@"int
// true // true
``` ```


```
delete obj.key or delete obj['key'] -> obj.delete_(@"key") -> what is the delete resevered word for..can it be used?
```

Strings Strings
-------- --------


Expand Down Expand Up @@ -300,8 +304,7 @@ people = _.sortBy(people, ^(Stooge* person){ return person.age; }); // no get(@"
equal(_.pluck(people, @"name").join(@", "), @"moe, curly", @"stooges sorted by age"); equal(_.pluck(people, @"name").join(@", "), @"moe, curly", @"stooges sorted by age");
``` ```



Please Contribute to SubjectiveScript.m
Want to Add Something?
--------------- ---------------


Currently, this is still early days and there is a lot to add and test. Please help out! Currently, this is still early days and there is a lot to add and test. Please help out!
Expand Down
5 changes: 5 additions & 0 deletions SubjectiveScriptTests/SubjectiveScriptTests.m
Expand Up @@ -12,6 +12,11 @@


@implementation SubjectiveScriptTests @implementation SubjectiveScriptTests


- (void)test_version
{
ok(SS.VERSION.VersionGreaterThanOrEqualTo(@"0.1.0"), @"expected version");
}

- (void)testArray - (void)testArray
{ {
A* people = AO(OKV({@"name", @"curly"}, {@"age", N.I(50)}), OKV({@"name", @"moe"}, {@"age", N.I(30)})); A* people = AO(OKV({@"name", @"curly"}, {@"age", N.I(50)}), OKV({@"name", @"moe"}, {@"age", N.I(30)}));
Expand Down

0 comments on commit eca4267

Please sign in to comment.