abstract struct MultiArrayUtils::RTEnum
- MultiArrayUtils::RTEnum
- Struct
- Value
- Object
Overview
"enum" with list of values filled at runtime.
Mimics Enum
as a MultiArray index: has #values
to iterate and #new
Can be filled with list of strings or count of values:
struct Stations < RTEnum
end
Stations.set_names("Station1", "Station2", "Station3")
# alternatively,
# Stations.set_count(15)
v1 = Stations.new(0)
v2 = Stations.new("Station1")
v1.should eq v2