summaryrefslogtreecommitdiff
path: root/ricky/param/selections.py
diff options
context:
space:
mode:
authorpepperpepperpepper <pepper@scannerjammer.com>2015-11-29 17:43:44 -0800
committerpepperpepperpepper <pepper@scannerjammer.com>2015-11-29 17:43:44 -0800
commit9a7bf3bffb2a8459e66b988aaff53611723b5ab4 (patch)
treecc4ef0de15e22f5c6e5f8d2ecf16db0486d7a8ff /ricky/param/selections.py
parent10a619b2c7227b2ad214fbb985141b884fbe87fb (diff)
required=0, -e commit message for your changes. Lines starting
Diffstat (limited to 'ricky/param/selections.py')
-rw-r--r--ricky/param/selections.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/ricky/param/selections.py b/ricky/param/selections.py
deleted file mode 100644
index 1e2c3b3..0000000
--- a/ricky/param/selections.py
+++ /dev/null
@@ -1,21 +0,0 @@
-from ricky.param.selection import Selection
-import sys
-class Selections:
- def __init__(self, *args):
- self._values = args
- def __iter__(self):
- return iter(self._values)
- def __len__(self):
- return len(self._values)
- def __str__(self):
- return str(self._values)
- def __getitem__(self, i):
- return self._values[i]
- def search(self, s):
- for i in self:
- if str(s) in i.value:
- return i
- @classmethod
- def from_dict(cls, *args):
- selections = map(lambda x: Selection(**x), args);
- return cls(*selections);