Say, I have a few constants const VTYPE_BINARY = 'B' const VTYPE_INTEGER = 'I' const VTYPE_CONTINUOUS = 'C'
What's a good way to have a namespace on it? So that I can use Vtype.BINARY, Vtype.INTEGER, Vtype.CONTINUOUS Should I put those in a separator module? or create a type and get an instance of it? module Vtype const .... end immutable Vtype BINARY::Char INTEGER::Char CONTINUOUS::Char end const vtype = Vtype('B','I','C')?