Issue #9141 has been reported by Soilent (H H).

----------------------------------------
Bug #9141: define_singleton_method creates private method
https://bugs.ruby-lang.org/issues/9141

Author: Soilent (H H)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-darwin12.5.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


Hello,
I stumbled upon the following problem:

irb(main):001:0> guy = "Bob"
=> "Bob"
irb(main):002:0> guy.define_singleton_method(:hello) { "#{self}: Hello there!" }
=> :hello
irb(main):003:0> guy.hello
NoMethodError: private method `hello' called for "Bob":String
	from (irb):3


-- 
http://bugs.ruby-lang.org/