js_obj 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -5
- data/demo.rb +7 -5
- data/lib/js_obj/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fb1bd7902d821e464fe6bbe45ff5b1230e9b317
|
4
|
+
data.tar.gz: ebd69df40dc4f07b8eab4682b517b6511d690532
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4113c3ca76736b32dea42587dea202138a2bfaf4a46ec861c1414b52f466d792e87a3dba730987f6c1f478c36e82e17d0150e2be3ee16ae752f3d3532fe067c
|
7
|
+
data.tar.gz: 9c0c46289e3fcbfa9583c1f6bcc3578884b98f09a92e4f4cff47576466d1a2cf48aaf0b0158db22e2a7a3363cce52ff7c92eda6f731ebedc36fd8039412f131d
|
data/README.md
CHANGED
@@ -33,19 +33,21 @@ user = {
|
|
33
33
|
}
|
34
34
|
|
35
35
|
# Get
|
36
|
-
|
37
|
-
|
36
|
+
p user.id #=> 1001
|
37
|
+
p user.position.x #=> 10.5
|
38
38
|
|
39
39
|
# Set
|
40
|
+
p user.name #=> "user1"
|
40
41
|
user.name = "Jason"
|
41
|
-
|
42
|
+
p user.name #=> "Jason"
|
42
43
|
|
43
44
|
# Add
|
45
|
+
p defined? user.position.z #=> nil
|
44
46
|
user.position.z = 9.8
|
45
|
-
|
47
|
+
p user.position.z #=> 9.8
|
46
48
|
|
47
49
|
# Usual way
|
48
|
-
|
50
|
+
p user[:id] #=> 1001
|
49
51
|
|
50
52
|
```
|
51
53
|
|
data/demo.rb
CHANGED
@@ -10,16 +10,18 @@ user = {
|
|
10
10
|
}
|
11
11
|
|
12
12
|
# Get
|
13
|
-
|
14
|
-
|
13
|
+
p user.id #=> 1001
|
14
|
+
p user.position.x #=> 10.5
|
15
15
|
|
16
16
|
# Set
|
17
|
+
p user.name #=> "user1"
|
17
18
|
user.name = "Jason"
|
18
|
-
|
19
|
+
p user.name #=> "Jason"
|
19
20
|
|
20
21
|
# Add
|
22
|
+
p defined? user.position.z #=> nil
|
21
23
|
user.position.z = 9.8
|
22
|
-
|
24
|
+
p user.position.z #=> 9.8
|
23
25
|
|
24
26
|
# Usual way
|
25
|
-
|
27
|
+
p user[:id] #=> 1001
|
data/lib/js_obj/version.rb
CHANGED