Module: DataMapper::Property::Flags

Included in:
Enum, Flag
Defined in:
lib/dm-types/support/flags.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/dm-types/support/flags.rb', line 4

def self.included(base)
  base.class_eval "extend DataMapper::Property::Flags::ClassMethods\n\naccept_options :flags\nattr_reader :flag_map\n\nclass << self\nattr_accessor :generated_classes\nend\n\nself.generated_classes = {}\n", __FILE__, __LINE__ + 1
end

Instance Method Details

#custom?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/dm-types/support/flags.rb', line 19

def custom?
  true
end