Method: MediaTypes::Dsl.included

Defined in:
lib/media_types/dsl.rb

.included(base) ⇒ Object



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/media_types/dsl.rb', line 11

def self.included(base)
  base.extend ClassMethods
  base.class_eval do
    class << self
      attr_accessor :media_type_name_for, :media_type_combinations

      private

      attr_accessor :media_type_constructable, :symbol_base, :media_type_registrar, :media_type_validations
    end
    base.media_type_combinations = Set.new
  end
end