Class: EnumType

Inherits:
PropType show all
Defined in:
ext/ae-rad/ae-rad-libs.rb

Direct Known Subclasses

EnumProcType

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ EnumType

Returns a new instance of EnumType.



130
131
132
133
134
135
136
# File 'ext/ae-rad/ae-rad-libs.rb', line 130

def initialize(*args)
  if args.class == Array
    @values = *args
  else
    @values = [*args]
  end
end

Instance Attribute Details

#valuesObject (readonly)

Returns the value of attribute values.



129
130
131
# File 'ext/ae-rad/ae-rad-libs.rb', line 129

def values
  @values
end