class demo
protected
def method1
end
def methods2
end
end
Will above syntax treat bot开发者_StackOverflowh of methods as protected or only first one?
Both methods will be protected
class demo
protected
def method1
end
def methods2
end
end
Will above syntax treat bot开发者_StackOverflowh of methods as protected or only first one?
Both methods will be protected
精彩评论