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

[Truffle] Private method error #2770

Closed
bjfish opened this issue Mar 28, 2015 · 3 comments
Closed

[Truffle] Private method error #2770

bjfish opened this issue Mar 28, 2015 · 3 comments
Milestone

Comments

@bjfish
Copy link
Contributor

bjfish commented Mar 28, 2015

I am getting the following error with this sample code below. I apologize if this is something we haven't implemented yet. I was not sure.

Code:

module Example

  class << Example

    private

    def append_features(mod)
      puts "Hello"
      super
    end

  end

end

class Example2
  include Example
end 

puts "Done"

Error:

rang.rb:17:in `include': private method `append_features' called for org.jruby.truffle.runtime.core.RubyClass@19d6ba35(Module) (NoMethodError)
    from rang.rb:17:in `Example2'
    from rang.rb:16:in `<main>'

Expected output (jruby, ruby):

Hello
Done
@chrisseaton chrisseaton added this to the truffle-dev milestone Mar 28, 2015
@bjfish
Copy link
Contributor Author

bjfish commented Mar 28, 2015

@chrisseaton this error was from rubysl-singleton , so that library might work now

@bjfish
Copy link
Contributor Author

bjfish commented Mar 28, 2015

Oops,I just remembered there is undef_method there too which i comented out.

@chrisseaton
Copy link
Contributor

There seem to be quite a few issues preventing singleton from working at the moment - no specs passed straight away.

@enebo enebo added this to the Non-Release milestone Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants