Sha256: 20b91793766883bb325a860fbacc2867a82074beb8b388f55ef5e40161ba76af

Contents?: true

Size: 550 Bytes

Versions: 4

Compression:

Stored size: 550 Bytes

Contents

require 'jinx/metadata/property'
require 'caruby/metadata/property_characteristics'

# Mix persistence into +Jinx::Property+.
module CaRuby
  class Property < Jinx::Property
    include CaRuby::PropertyCharacteristics
           
    def initialize(attribute, declarer, type=nil, *flags)
      super
    end
    
    private
    
    # @param [Symbol] the flag to set
    # @return [Boolean] whether the flag is supported
    def flag_supported?(flag)
      super or CaRuby::PropertyCharacteristics::SUPPORTED_FLAGS.include?(flag)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
caruby-core-2.1.4 lib/caruby/metadata/property.rb
caruby-core-2.1.3 lib/caruby/metadata/property.rb
caruby-core-2.1.2 lib/caruby/metadata/property.rb
caruby-core-2.1.1 lib/caruby/metadata/property.rb