module Cattri::Visibility

def protected(*args)

Returns:
  • (void) -

Parameters:
  • args (Array) -- method names to make protected, or empty to set context
def protected(*args)
  @__cattri_visibility = :protected if args.empty?
  Module.instance_method(:protected).bind(self).call(*args)
end