相关疑难解决方法(0)

评论"frozen_string_literal:true"有什么作用?

这是rspec我项目目录中的binstub.

#!/usr/bin/env ruby
begin
  load File.expand_path("../spring", __FILE__)
rescue LoadError
end
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'rspec' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
  Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("rspec-core", "rspec")
Run Code Online (Sandbox Code Playgroud)

这是打算做什么的?

# frozen_string_literal: true
Run Code Online (Sandbox Code Playgroud)

ruby string immutability ruby-2.3

188
推荐指数
3
解决办法
5万
查看次数

标签 统计

immutability ×1

ruby ×1

ruby-2.3 ×1

string ×1