Sha256: 12e0bd43b2f1c29562757f713bc56ec921aca7e62fae1220e00c08d8ed2b6bcc

Contents?: true

Size: 387 Bytes

Versions: 11

Compression:

Stored size: 387 Bytes

Contents

class Symbol
  (DataMapper::Query::Conditions::Comparison.slugs | [ :not, :asc, :desc ]).each do |sym|
    class_eval <<-RUBY, __FILE__, __LINE__ + 1
      def #{sym}
        #{"warn \"explicit use of '#{sym}' operator is deprecated (#{caller[0]})\"" if sym == :eql || sym == :in}
        DataMapper::Query::Operator.new(self, #{sym.inspect})
      end
    RUBY
  end
end # class Symbol

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
datamapper-dm-core-0.10.0 lib/dm-core/core_ext/symbol.rb
datamapper-dm-core-0.10.1 lib/dm-core/core_ext/symbol.rb
dm-core-1.0.2 lib/dm-core/core_ext/symbol.rb
dm-core-1.0.1 lib/dm-core/core_ext/symbol.rb
dm-core-1.0.0 lib/dm-core/core_ext/symbol.rb
dm-core-1.0.0.rc3 lib/dm-core/core_ext/symbol.rb
dm-core-1.0.0.rc2 lib/dm-core/core_ext/symbol.rb
dm-core-1.0.0.rc1 lib/dm-core/core_ext/symbol.rb
dm-core-0.10.2 lib/dm-core/core_ext/symbol.rb
dm-core-0.10.1 lib/dm-core/core_ext/symbol.rb
dm-core-0.10.0 lib/dm-core/core_ext/symbol.rb