Skip to content

Make #instance method name configurable #4

Description

@janlelis

Unfortunately, Object#instance clashes with some other libraries. For example, in does not work with more recent Rails versions (see https://github.com/rails/rails/blob/v5.0.2/railties/lib/rails/application.rb#L93-L95). Another example is stdlib's singleton library: https://github.com/ruby/ruby/blob/trunk/lib/singleton.rb

Another solution would be to rename it to something that is less likely to interfere with other libraries. Or maybe even go the refinements route?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions