Sha256: fae4073b1ec630ae0d347db60bbe0ee9c0a842ada1efaec4b7be4c0026eed895
Contents?: true
Size: 562 Bytes
Versions: 6
Compression:
Stored size: 562 Bytes
Contents
require 'active_support/concern' module Iqvoc module Configuration module Collection extend ActiveSupport::Concern included do mattr_accessor :base_class_name, :member_class_names self.base_class_name = 'Collection::Unordered' self.member_class_names = ['Collection::Member::SKOS::Base'] end module ClassMethods def base_class base_class_name.constantize end def member_classes member_class_names.map(&:constantize) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems