yinx 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/yinx/note_meta.rb +2 -3
- data/lib/yinx/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: 880a04045c8e6c8440578512ed8ab6275859e117
|
|
4
|
+
data.tar.gz: 7adab8f487351c63c2d86d0c66f3b410bd8b31e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5153da461f91c61e8e658296637e74730ea575947d55d3cfd4ab08ad94920a9824fe5e3163062b3704701f1537925ef0b33fd856ce7b5715cd51163be7dcd4b
|
|
7
|
+
data.tar.gz: 9dd463d49b5a73dca6c7428151c9eb473e78b6ba4c1653f1a19d7446225d39c23647c6d9701634618f1c195b75ecd7281e949c60e6bf4c4d36813819803f7cfe
|
data/lib/yinx/note_meta.rb
CHANGED
|
@@ -5,12 +5,11 @@ class NoteMeta
|
|
|
5
5
|
[:updated, :created, :title, :notebookGuid, :guid, :contentLength, :tagGuids].each do |method|
|
|
6
6
|
define_method method do
|
|
7
7
|
iv_name = "@#{method}"
|
|
8
|
-
|
|
9
|
-
unless value
|
|
8
|
+
unless instance_variable_defined? iv_name
|
|
10
9
|
value = instance_variable_get("@meta").send method
|
|
11
10
|
instance_variable_set iv_name, value
|
|
12
11
|
end
|
|
13
|
-
|
|
12
|
+
instance_variable_get iv_name
|
|
14
13
|
end
|
|
15
14
|
end
|
|
16
15
|
|
data/lib/yinx/version.rb
CHANGED