summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--state.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/state.rb b/state.rb
index b8e2964..f1387a7 100644
--- a/state.rb
+++ b/state.rb
@@ -233,7 +233,11 @@ class State
newtype.hold_provides = hold_provides
newtype.instance_eval do
undef :new_type, :process_event, :gc, :depsolve_all
+ def name
+ @name
+ end
end
+ newtype.instance_variable_set(:@name, name)
@@state_types.add newtype
newtype.depsolve
newtype