Files
codeql/ruby/ql/lib
Harry Maclean 8df5aaa797 Ruby: Model private class methods
`Module#private_class_method` takes a symbol representing the name of a
method in the current module scope and makes that module private. This
is similar to `private`, but applies only to class (singleton) methods.
Unlike `private`, it must be called with an argument, and does not
change the ambient visibility for any subsequent method definitions.

    class Foo
      def public
      end

      def private1
      end
      private_class_method :private1

      # This alternate form works because method definition
      # returns its name as a symbol:

      private_class_method def private2
      end
    end
2021-12-09 18:15:25 +13:00
..
2021-12-09 18:15:25 +13:00
2021-12-03 17:04:00 +01:00
2021-10-15 11:47:28 +02:00
2021-10-15 11:47:28 +02:00