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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57974f040c6be178fe85ea7aae937a4dcbda5c587e8562337eb3ca0d1350812f
4
- data.tar.gz: ded8003925e5cabece8f655d14724d00c42aedcc2f8f11177af9eb81936a0426
3
+ metadata.gz: f902743811fec6c55772cbf3db6a20dc6d41702334f4089e1c35a05d780ffadc
4
+ data.tar.gz: 529e7168fcf0e59d2a90b3bee49c70776763a5019016fa7dec3a77b291360660
5
5
  SHA512:
6
- metadata.gz: 5755e06bd81077928a1070904583ce58cb82ea1fcbf19986045c177596cc55df2653d41d35e656bcc12011c553f12d1bf4b105f4c6215271d5dee526c8bc2efb
7
- data.tar.gz: 201d226fa6b5d74de4f1f08848481c7d8f75148a84e068db106d300a3282e8475db648dfec7c64710b94aed3cffdc4e873aa616b6f2610ff16bf82dc01e380bd
6
+ metadata.gz: cee004bc20d2fdfd6dafed5bdbd75f17da5883db081236604c9fc64be63d215adad0fd69c5fce71cf387bca5953774ede38bcb2e5f9fd7a92d9bc02a80510921
7
+ data.tar.gz: a874636b58d09345512247e2b9d7caf505720b264715122f4e4ec8b1752571eefebe16aebb29df623da77707b0c054031d5aebe19017d5a44e63871f4123868b
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
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( subclass )
149
- # @verb_references << subclass
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( subclass )
157
- # @obj_references << subclass
158
- add_object subclass
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
  # ---------------------------------------------------------------------
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gloo-lang
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Crane