📄 ham.rb
字号:
module ContentState class Ham < Base include Singleton def enter_hook(content) super content[:published] = true content[:status_confirmed] = true end def published?(content) true end def status_confirmed?(content) true end def before_save(content) content.report_as_ham true end def withdraw(content) content.mark_as_spam end def to_s 'Ham' end def mark_as_ham(content) end endend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -