Skip to content

Commit 43a74bd

Browse files
committed
Fixes for alignment issues.
1 parent d816607 commit 43a74bd

File tree

4 files changed

+44
-44
lines changed

4 files changed

+44
-44
lines changed

SwiftyJSONAccelerator/Base Files/BaseTemplate.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,28 @@ import Foundation{INCLUDE_SWIFTY}{INCLUDE_OBJECT_MAPPER}
99

1010
public {OBJECT_KIND} {OBJECT_NAME}: {OBJECT_BASE_CLASS}{NSCODING_PROTOCOL_SUPPORT} {
1111

12-
// MARK: Declaration for string constants to be used to decode and also serialize.
13-
{STRING_CONSTANT_BLOCK}
12+
// MARK: Declaration for string constants to be used to decode and also serialize.
13+
{STRING_CONSTANT_BLOCK}
1414

15-
// MARK: Properties
16-
{PROPERTIES}
15+
// MARK: Properties
16+
{PROPERTIES}
1717

18-
// MARK: Initalizers
18+
// MARK: Initalizers
1919
{SWIFTY_JSON_SUPPORT}
2020

2121
{OBJECT_MAPPER_SUPPORT}
2222

23-
/**
24-
Generates description of the object in the form of a NSDictionary.
25-
- returns: A Key value pair containing all valid values in the object.
26-
*/
27-
public func dictionaryRepresentation() -> [String : AnyObject ] {
23+
/**
24+
Generates description of the object in the form of a NSDictionary.
25+
- returns: A Key value pair containing all valid values in the object.
26+
*/
27+
public func dictionaryRepresentation() -> [String : AnyObject ] {
2828

29-
var dictionary: [String : AnyObject ] = [ : ]
30-
{DESC}
29+
var dictionary: [String : AnyObject ] = [ : ]
30+
{DESC}
3131

32-
return dictionary
33-
}
32+
return dictionary
33+
}
3434

3535
{NSCODING_SUPPORT}
3636

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// MARK: NSCoding Protocol
1+
// MARK: NSCoding Protocol
22
required public init(coder aDecoder: NSCoder) {
3-
{DECODERS}
3+
{DECODERS}
44
}
55

66
public func encodeWithCoder(aCoder: NSCoder) {
7-
{ENCODERS}
7+
{ENCODERS}
88
}
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
/**
2-
Map a JSON object to this class using ObjectMapper
3-
- parameter map: A mapping from ObjectMapper
4-
*/
5-
required init?(_ map: Map){
1+
/**
2+
Map a JSON object to this class using ObjectMapper
3+
- parameter map: A mapping from ObjectMapper
4+
*/
5+
required init?(_ map: Map){
66

7-
}
7+
}
88

9-
/**
10-
Map a JSON object to this class using ObjectMapper
11-
- parameter map: A mapping from ObjectMapper
12-
*/
13-
func mapping(map: Map) {
9+
/**
10+
Map a JSON object to this class using ObjectMapper
11+
- parameter map: A mapping from ObjectMapper
12+
*/
13+
func mapping(map: Map) {
1414
{OBJECT_MAPPER_INITIALIZER}
15-
}
15+
}
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
/**
2-
Initates the class based on the object
3-
- parameter object: The object of either Dictionary or Array kind that was passed.
4-
- returns: An initalized instance of the class.
5-
*/
6-
convenience public init(object: AnyObject) {
1+
/**
2+
Initates the class based on the object
3+
- parameter object: The object of either Dictionary or Array kind that was passed.
4+
- returns: An initalized instance of the class.
5+
*/
6+
convenience public init(object: AnyObject) {
77
self.init(json: JSON(object))
8-
}
8+
}
99

10-
/**
11-
Initates the class based on the JSON that was passed.
12-
- parameter json: JSON object from SwiftyJSON.
13-
- returns: An initalized instance of the class.
14-
*/
15-
public init(json: JSON) {
16-
{INITALIZER}
17-
}
10+
/**
11+
Initates the class based on the JSON that was passed.
12+
- parameter json: JSON object from SwiftyJSON.
13+
- returns: An initalized instance of the class.
14+
*/
15+
public init(json: JSON) {
16+
{INITALIZER}
17+
}

0 commit comments

Comments
 (0)