Bugs: Browse | Submit New | Admin

[#22361] instance_eval and visibility

Date:
2008-10-09 21:37
Priority:
1
Submitted By:
Tomas Matousek (tmat)
Assigned To:
Tomas Matousek (tmat)
Category:
Core Language
State:
Open
Summary:
instance_eval and visibility

Detailed description
p $a = Object.new

module M
    private
	     
    $a.instance_eval {
	    
		def foo
		  puts 'foo'
		end		
	}
end

class << $a
  p private_instance_methods(false)
  p instance_methods(false)
end

Add A Comment: Notepad

Please login


Followup

Message
Date: 2009-01-07 00:47
Sender: Tomas Matousek

Compatible with 1.8, but not with 1.9.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
priority32009-01-07 00:48tmat