blob: a5feda797ee6a8912de881bccb4ed16e81943171 [file] [log] [blame]
from .namedelement import NamedElement
from .property import Property
""" Class for parsing 'enum' definition elements from an interface.
"""
class Enum(NamedElement):
def __init__(self, **kwargs):
self.values = \
[Property(**v) for v in kwargs.pop('values', [])]
super(Enum, self).__init__(**kwargs)