方法
常量
IPS_GEM_NAME | = | "benchmark-ips" |
IPS_GEM_USED_REGEXP | = | /gem.*\b#{IPS_GEM_NAME}\b.*/ |
实例公共方法
generate_layout() 链接
源代码:显示 | 在 GitHub 上
# File railties/lib/rails/generators/rails/benchmark/benchmark_generator.rb, line 13 def generate_layout add_ips_to_gemfile unless ips_installed? template("benchmark.rb.tt", "script/benchmarks/#{file_name}.rb") end