# File lib/dm-types/flag.rb, line 10 def initialize(model, name, options = {}) super @flag_map = {} flags = options.fetch(:flags, self.class.flags) flags.each_with_index do |flag, i| flag_map[i] = flag end end