Sha256: 2d795a6110eefd365a2123ee91eb440ab969430221b78e344c5a11764c68ed13

Contents?: true

Size: 720 Bytes

Versions: 1

Compression:

Stored size: 720 Bytes

Contents

# frozen_string_literal: true

# frozen_string_literal: true

class Mockolate::Parameters
  module Hooks
    def self.included(base)
      base.extend ClassInitializers
    end
    
    module ClassInitializers
      # Function runs after a class inherited from Mockolate::Parameters
      # @params [Class] class to override
      def initialize!(base)
        base.class_eval do
          # Included modules
          include Mockolate::Parameters::Attributes::Macros
          # include Mockolate::Parameters::Generator
          # include Mockolate::Parameters::Attributes

          # class variables and attributes
          class_variable_set :@@_public_attributes, {}
        end
      end
    end
  
  end  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mockolate-0.0.0 lib/mockolate/parameters/hooks.rb