Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. 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