summaryrefslogtreecommitdiff
path: root/ricky/param/enum.py
diff options
context:
space:
mode:
Diffstat (limited to 'ricky/param/enum.py')
-rw-r--r--ricky/param/enum.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ricky/param/enum.py b/ricky/param/enum.py
index 757bd29..f0adc9e 100644
--- a/ricky/param/enum.py
+++ b/ricky/param/enum.py
@@ -31,3 +31,8 @@ class Enum(Param):
def randomize(self):
self.value_set(random.choice(self._options))
+
+ def as_dict(self):
+ my_dict = super(Enum, self).as_dict()
+ my_dict['options'] = self._options
+ return my_dict