Skip to content

Make #instance method name configurable #4

@janlelis

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?

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