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

+ (Object) included(base)



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 <<-RUBY, __FILE__, __LINE__ + 1
    extend DataMapper::Property::Flags::ClassMethods

    accept_options :flags
    attr_reader :flag_map

    class << self
      attr_accessor :generated_classes
    end

    self.generated_classes = {}
  RUBY
end

Instance Method Details

- (Boolean) custom?

Returns:

  • (Boolean)


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

def custom?
  true
end