Sha256: 58f207927f8c09e555337c7eb11a22a05f9d2087c66d60724e81733bcdcf283d

Contents?: true

Size: 385 Bytes

Versions: 2

Compression:

Stored size: 385 Bytes

Contents

# encoding: utf-8

require 'active_support/core_ext/class/attribute'
require 'active_support/inflector'
require 'enumerate_it/base'
require 'enumerate_it/class_methods'

module EnumerateIt
  def self.extended(receiver)
    receiver.class_attribute :enumerations, instance_writer: false, instance_reader: false
    receiver.enumerations = {}

    receiver.extend ClassMethods
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enumerate_it-1.5.0 lib/enumerate_it.rb
enumerate_it-1.4.1 lib/enumerate_it.rb