Module: EnumeratedAttribute::MacroMethods

Defined in:
lib/enumerated_attribute.rb

Instance Method Summary collapse

Instance Method Details

#enumerated_attribute(*args, &block) ⇒ Object Also known as: enum_attr



9
10
11
12
13
14
# File 'lib/enumerated_attribute.rb', line 9

def enumerated_attribute(*args, &block)
	class << self
		include EnumeratedAttribute::Attribute
	end
	create_enumerated_attribute(*args, &block)
end