From b02cc8d49513cdcc54f4421e71db3512354d4e2e Mon Sep 17 00:00:00 2001 From: yo mama Date: Sat, 10 Oct 2015 02:54:41 -0700 Subject: renamed options to selections --- ricky/param/options.py | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 ricky/param/options.py (limited to 'ricky/param/options.py') diff --git a/ricky/param/options.py b/ricky/param/options.py deleted file mode 100644 index 2a21cce..0000000 --- a/ricky/param/options.py +++ /dev/null @@ -1,21 +0,0 @@ -from ricky.param.option import Option -import sys -class Options: - 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): - options = map(lambda x: Option(**x), args); - return cls(*options); -- cgit v1.2.3-70-g09d2