module Icss::Meta::EnumType
A symbol from a pre-chosen set
Public Instance Methods
receive(raw)
click to toggle source
Calls superclass method
# File lib/icss/type/structured_schema.rb, line 105 def receive(raw) obj = super(raw) or return unless self.symbols.include?(obj) then raise ArgumentError, "Cannot receive #{raw}: must be one of #{symbols[0..2].join(',')}#{symbols.length > 3 ? ",..." : ""}" ; end obj end
to_schema()
click to toggle source
# File lib/icss/type/structured_schema.rb, line 110 def to_schema() _schema.to_hash end