/usr/lib/ruby/vendor_ruby/sequel/extensions/ruby18_symbol_extensions.rb is in ruby-sequel 4.1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # 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
|