Sha256: 4640293906fcf1492d09c622c6141ad62b23f73144e0b52b68b52f8cdcdec4a9
Contents?: true
Size: 450 Bytes
Versions: 8
Compression:
Stored size: 450 Bytes
Contents
gem 'meta_programming', '>= 0.2.0' require 'meta_programming' require 'enumerated_attribute/attribute' module EnumeratedAttribute module MacroMethods def enumerated_attribute(*args, &block) class << self include EnumeratedAttribute::Attribute end create_enumerated_attribute(*args, &block) end alias_method :enum_attr, :enumerated_attribute end end Class.class_eval do include EnumeratedAttribute::MacroMethods end
Version data entries
8 entries across 8 versions & 2 rubygems