Skip to content

singleton method + zsuper issue when contained in another class? #5634

@enebo

Description

@enebo
class Foo
  def one
    puts "Foo.one"
  end
end

class Bar
  foo = Foo.new

  def foo.one
    puts "singleton.one"
    super
  end

  foo.one
end

while examining a rails app I noticed another zsuper issue! If I remove class Bar from wrapping this we work as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions