/usr/lib/ruby/vendor_ruby/merb-core/core_ext/class.rb is in ruby-merb-core 1.1.3+dfsg-2.
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 23 24 25 26 27 28 29 30 31 32 33 34 | class Class
# Allows the definition of methods on a class that will be available via
# super.
#
# ==== Examples
# class Foo
# chainable do
# def hello
# "hello"
# end
# end
# end
#
# class Foo
# def hello
# super + " Merb!"
# end
# end
#
# Foo.new.hello #=> "hello Merb!"
#
# ==== Parameters
# &blk::
# a block containing method definitions that should be
# marked as chainable
#
# ==== Returns
# Module:: The anonymous module that was created
def chainable(&blk)
mod = Module.new(&blk)
include mod
mod
end
end
|