Module: DataMapper::Enum

Defined in:
lib/dm/enum.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



3
4
5
6
# File 'lib/dm/enum.rb', line 3

def self.included(receiver)
  receiver.extend ClassMethods
  attr_reader :name_property
end