Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Module#public_class_method

mod.public_class_method(symbol, ...) → mod
mod.public_class_method(string, ...) → mod
mod.public_class_method(array) → mod

Makes a list of existing class methods public.

String arguments are converted to symbols. An Array of Symbols and/or Strings is also accepted.

Ruby version changes

  1. 3.0