Sha256: 106a9d0617cad63579f496f075cc6b58a8042d964da1d6077aeac0eb820d7f1c
Contents?: true
Size: 807 Bytes
Versions: 24
Compression:
Stored size: 807 Bytes
Contents
# frozen-string-literal: true # # The ruby18_symbol_extensions adds the <, <=, >, >= to Symbol # to reflect the mathmatical operators. It also adds the [] method # to Symbol for creating SQL functions. # # Usage of this extension is not recommended. This extension will # only load on ruby 1.8, so you will not be able to upgrade to # newer ruby versions if you use it. If you still want to use it, # you can load it via: # # Sequel.extension :ruby18_symbol_extensions raise(Sequel::Error, "The ruby18_symbol_extensions is only available on ruby 1.8.") unless RUBY_VERSION < '1.9.0' class Symbol include Sequel::SQL::InequalityMethods # Create an SQL Function with the receiver as the function name # and the given arguments. def [](*args) Sequel::SQL::Function.new(self, *args) end end
Version data entries
24 entries across 22 versions & 2 rubygems