require 'main'
Main {
mode 'install' do
def run() puts 'installing...' end
end
mode 'uninstall' do
def run() puts 'uninstalling...' end
end
}
上面是这个gem的用法
Main后直接跟block
如果Main.xxx 可以理解 这是一个method
可是Main直接跟,让我不能理解啊