10 points · by skorks · 16y ago · 2 comments
(note : there are some ways to make things private in javascript as I wrote there : http://www.javascriptkata.com/2009/09/23/how-to-create-an-ob...)
class Object
private
def name
puts "Name called"
end
end
o = Object.new
o = o.send :name # outputs "Name called"
And therefore you can easily test private methods.