ruby 笔记

symbol 不能有-

'data-turbolinks-track' => true

stop rails –s

kill -INT $(cat tmp/pids/server.pid)

class A
puts "foobar"
end
装入A类时,输出foobar

object.call_method     ===  object.__send__(:call_method)

Module中定主方法 然后include 及Mixins

include 得到实例方法

extend 类方法

Person.methods(false) 返回自己的方法 不是ancestros中的

posted on 2016-05-02 23:41  anjuncc  阅读(79)  评论(0)    收藏  举报

导航