Sha256: 49896ef9eb8a162ed2616276b30c0b9562c496fcb15d4fb6a83aa1648eede9be
Contents?: true
Size: 814 Bytes
Versions: 83
Compression:
Stored size: 814 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/classes' describe "Kernel#private_methods" do it "returns a list of the names of privately accessible methods in the object" do m = KernelSpecs::Methods.private_methods(false) m.should include(:shichi) m = KernelSpecs::Methods.new.private_methods(false) m.should include(:juu_shi) end it "returns a list of the names of privately accessible methods in the object and its ancestors and mixed-in modules" do m = (KernelSpecs::Methods.private_methods(false) & KernelSpecs::Methods.private_methods) m.should include(:shichi) m = KernelSpecs::Methods.new.private_methods m.should include(:juu_shi) end end
Version data entries
83 entries across 83 versions & 1 rubygems