Ruby变量分配Ruby介绍000

时间:2021-02-20 01:02:52
【文件属性】:
文件名称:Ruby变量分配Ruby介绍000
文件大小:5KB
文件格式:ZIP
更新时间:2021-02-20 01:02:52
Ruby 变量分配 目标 分配局部变量。 指示 您将分配一个名为greeting的局部变量,该变量等于"Hello World" 。 您首先应该通过运行learn来确保测试套件正确运行。 在首次运行测试套件时,您应该看到: Failures: 1) ./variable.rb defined a local variable called greeting and set it equal to 'Hello World' Failure/Error: greeting = get_variable_from_file('./variable.rb', "greeting") NameError: local variable `greeting' not defined in ./variable.rb. # ./spec/spec_helpe
【文件预览】:
ruby-variable-assignment-ruby-intro-000-master
----variable.rb(95B)
----CONTRIBUTING.md(2KB)
----.rspec(52B)
----spec()
--------variable_spec.rb(271B)
--------spec_helper.rb(361B)
----LICENSE.md(1KB)
----.gitignore(642B)
----.learn(78B)
----README.md(1KB)

网友评论