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

Already on GitHub? Sign in to your account

Implement Module#singleton_class? predicate method #1822

Merged
merged 1 commit into from Jul 25, 2014

Conversation

Projects
None yet
2 participants
Contributor

robin850 commented Jul 17, 2014

Hello,

This pull request simply adds the Module#singleton_class? method to JRuby. This method has been introduced in Ruby 2.1 and is a convenient way to check whether a class is a singleton one or not (see https://bugs.ruby-lang.org/issues/7609 for further information).

A RubySpec has been added for that in rubyspec/rubyspec#279.

Have a nice day.

Implement Module#singleton_class? predicate method
This method has been introduced in Ruby 2.1 and is a convenient way to
check whether a class is a singleton one or not (see
https://bugs.ruby-lang.org/issues/7609 for further information).

headius added a commit that referenced this pull request Jul 25, 2014

Merge pull request #1822 from robin850/singleton-class-p
Implement Module#singleton_class? predicate method

@headius headius merged commit d6612af into jruby:master Jul 25, 2014

1 check failed

continuous-integration/travis-ci The Travis CI build failed
Details

@robin850 robin850 deleted the robin850:singleton-class-p branch Jul 25, 2014

Contributor

robin850 commented Jul 25, 2014

Thanks!

@headius headius added this to the JRuby 9000 milestone Jul 25, 2014

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