Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Singleton visibility #1080

Merged
merged 2 commits into from
Jan 7, 2024
Merged

Singleton visibility #1080

merged 2 commits into from
Jan 7, 2024

Commits on Jan 7, 2024

  1. Singleton method visibility should be isolated

    Each singleton method definition of the form `def recv.method` has
    visibility separate from the outer scope and is set to `public` by
    default.
    nobu committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    810913a View commit details
    Browse the repository at this point in the history
  2. Visibility should begin from public for each scope

    Even for singleton class definition such as `class << self` that
    shares the same container with the outer scope, its visibility is
    separated and set to `public` by default.
    nobu committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    baf2636 View commit details
    Browse the repository at this point in the history