blob: 55f8dc2a5aba1df7f5c94ac8f037d383788a2e05 [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)