开发者

Rails Model: Protected methods?

    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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜