表单: RailsNotes
用户: dreamable
创建日期: 2021-03-21 10:55:32 UTC
更新日期: 2021-03-21 10:55:32 UTC
引用:(Table ID 3, Record ID 30)

标题 :
Include vs Extend
笔记 :

What is the difference between include and extend in Ruby?

  • include: mixes in specified module methods as instance methods in the target class
  • extend: mixes in specified module methods as class methods in the target class
标签: