Module: MediaTypes::Dsl
- Defined in:
- lib/media_types/dsl.rb,
lib/media_types/dsl/errors.rb
Defined Under Namespace
Modules: ClassMethods Classes: KeyTypeExpectationError, MissingValidationError, OrganisationNotSetError, UninitializedConstructable
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/media_types/dsl.rb', line 12 def self.included(base) base.extend ClassMethods base.class_eval do class << self attr_accessor :media_type_name_for, :media_type_combinations, :media_type_validations, :symbol_keys private attr_accessor :media_type_constructable, :symbol_base, :media_type_registrar end base.media_type_combinations = Set.new end end |