gloo-lang 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/gloo_lang/core/dictionary.rb +26 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f902743811fec6c55772cbf3db6a20dc6d41702334f4089e1c35a05d780ffadc
|
4
|
+
data.tar.gz: 529e7168fcf0e59d2a90b3bee49c70776763a5019016fa7dec3a77b291360660
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cee004bc20d2fdfd6dafed5bdbd75f17da5883db081236604c9fc64be63d215adad0fd69c5fce71cf387bca5953774ede38bcb2e5f9fd7a92d9bc02a80510921
|
7
|
+
data.tar.gz: a874636b58d09345512247e2b9d7caf505720b264715122f4e4ec8b1752571eefebe16aebb29df623da77707b0c054031d5aebe19017d5a44e63871f4123868b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.2
|
@@ -145,17 +145,37 @@ module GlooLang
|
|
145
145
|
#
|
146
146
|
# Register a verb after start up.
|
147
147
|
#
|
148
|
-
def register_verb_post_start(
|
149
|
-
|
150
|
-
add_verb subclass
|
148
|
+
def register_verb_post_start( verb_class )
|
149
|
+
add_verb verb_class
|
151
150
|
end
|
152
151
|
|
153
152
|
#
|
154
153
|
# Register an object type after start up.
|
155
154
|
#
|
156
|
-
def register_obj_post_start(
|
157
|
-
|
158
|
-
|
155
|
+
def register_obj_post_start( obj_class )
|
156
|
+
add_object obj_class
|
157
|
+
end
|
158
|
+
|
159
|
+
#
|
160
|
+
# Un-Register a verb.
|
161
|
+
#
|
162
|
+
def unregister_verb( verb_class )
|
163
|
+
@verbs.delete( verb_class.keyword )
|
164
|
+
@verbs.delete( verb_class.keyword_shortcut )
|
165
|
+
|
166
|
+
@keywords.delete( verb_class.keyword )
|
167
|
+
@keywords.delete( verb_class.keyword_shortcut )
|
168
|
+
end
|
169
|
+
|
170
|
+
#
|
171
|
+
# Un-Register an object.
|
172
|
+
#
|
173
|
+
def unregister_obj( obj_class )
|
174
|
+
@objs.delete( obj_class.typename )
|
175
|
+
@objs.delete( obj_class.short_typename )
|
176
|
+
|
177
|
+
@keywords.delete( obj_class.typename )
|
178
|
+
@keywords.delete( obj_class.short_typename )
|
159
179
|
end
|
160
180
|
|
161
181
|
# ---------------------------------------------------------------------
|