js_obj 1.0.0 → 1.0.1
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 -4
- data/demo.rb +8 -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: d135bf495930d6b49a466a633a13681fb4b5a913
|
4
|
+
data.tar.gz: ffdfc655fc6fb9ef720f7c2f0d39f231b3248592
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 408a1089128b0030e302d439c0dde9dc46fedac3953be35cdbdf9872a61f42baf4e829ebea83e00c2b8b3fbc5d1aa3f49b8645c30f05e8f08a44e2866c1737f0
|
7
|
+
data.tar.gz: 4ad8c7ab0e222cd2efa9342bbe3d47a241a416b780cc481bfd9de5dc29d411d74ca1c1e13ad626b2642a5967221b17fadf1380a4caecbcba87c85f6abd8928c8
|
data/README.md
CHANGED
@@ -33,23 +33,26 @@ user = {
|
|
33
33
|
}
|
34
34
|
}
|
35
35
|
|
36
|
-
# Get
|
36
|
+
# Get Property
|
37
|
+
|
37
38
|
puts user.id
|
38
39
|
#=> 1001
|
39
|
-
|
40
|
-
# Get property
|
41
40
|
puts user.position.x
|
42
41
|
#=> 10.5
|
43
42
|
|
44
43
|
# Add property
|
44
|
+
|
45
45
|
user.name = "user1"
|
46
46
|
puts user.name
|
47
47
|
#=> user1
|
48
48
|
|
49
|
-
# Add property
|
50
49
|
user.position.z = 9.8
|
51
50
|
puts user.position.z
|
52
51
|
#=> 9.8
|
52
|
+
|
53
|
+
# Usual way
|
54
|
+
puts user[:id]
|
55
|
+
#=> 1001
|
53
56
|
```
|
54
57
|
|
55
58
|
## Development
|
data/demo.rb
CHANGED
@@ -8,20 +8,23 @@ user = {
|
|
8
8
|
}
|
9
9
|
}
|
10
10
|
|
11
|
-
# Get
|
11
|
+
# Get Property
|
12
|
+
|
12
13
|
puts user.id
|
13
14
|
#=> 1001
|
14
|
-
|
15
|
-
# Get property
|
16
15
|
puts user.position.x
|
17
16
|
#=> 10.5
|
18
17
|
|
19
18
|
# Add property
|
19
|
+
|
20
20
|
user.name = "user1"
|
21
21
|
puts user.name
|
22
22
|
#=> user1
|
23
23
|
|
24
|
-
# Add property
|
25
24
|
user.position.z = 9.8
|
26
25
|
puts user.position.z
|
27
|
-
#=> 9.8
|
26
|
+
#=> 9.8
|
27
|
+
|
28
|
+
# Usual way
|
29
|
+
puts user[:id]
|
30
|
+
#=> 1001
|
data/lib/js_obj/version.rb
CHANGED