Browse Source

Add missing function

yogevbd 4 years ago
parent
commit
2141d065cd
2 changed files with 6 additions and 0 deletions
  1. 2
    0
      lib/ios/Param.h
  2. 4
    0
      lib/ios/Param.m

+ 2
- 0
lib/ios/Param.h View File

@@ -2,6 +2,8 @@
2 2
 
3 3
 @interface Param : NSObject
4 4
 
5
++ (instancetype)withValue:(id)value;
6
+
5 7
 - (instancetype)initWithValue:(id)value;
6 8
 
7 9
 - (id)get;

+ 4
- 0
lib/ios/Param.m View File

@@ -9,6 +9,10 @@
9 9
 
10 10
 @implementation Param
11 11
 
12
++ (instancetype)withValue:(id)value {
13
+    return [[self.class alloc] initWithValue:value];
14
+}
15
+
12 16
 - (instancetype)initWithValue:(id)value {
13 17
 	self = [super init];
14 18
 	self.value = value;