首页 > 其他 > 详细

class_options

时间:2018-10-26 13:46:01      阅读:166      评论:0      收藏:0      [点我收藏+]

一、class_option :stylesheet, :type => :boolean, :default => "true", :description => "test class_options"

 通过skip设置stylesheet为false

rails g my docker --skip-stylesheet

 

 

二、class_option :scope, :type => :string, :default => "zn", :description => "test class_options"

通过在命令行中设置scope值

rails g my docker --scope test

 

class_options

原文:https://www.cnblogs.com/znsongshu/p/9855818.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!