真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

CannotaccesstypemethodonRubyclass

The following code is copied from the site - http://www.w3cschool.cc/ruby/ruby-object-oriented.html. Note, it is at the bottom.  However, I got one error message during runing it.

成都創(chuàng)新互聯(lián)專注于安順企業(yè)網(wǎng)站建設(shè),自適應(yīng)網(wǎng)站建設(shè),成都商城網(wǎng)站開(kāi)發(fā)。安順網(wǎng)站建設(shè)公司,為安順等地區(qū)提供建站服務(wù)。全流程按需定制,專業(yè)設(shè)計(jì),全程項(xiàng)目跟蹤,成都創(chuàng)新互聯(lián)專業(yè)和態(tài)度為您提供的服務(wù)

#!/usr/bin/ruby -w
class Box
  # 輸出類信息
  puts "Type of self = #{self.type}"
  puts "Name of self = #{self.name}"
end

The output error message:

D:\Ruby\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) D:/Ruby/RubyStudyPro/box.rb
D:/Ruby/RubyStudyPro/box.rb:4:in `': undefined method `type' for Box:Class (NoMethodError)
 from D:/Ruby/RubyStudyPro/box.rb:2:in `'
 from -e:1:in `load'
 from -e:1:in `

'

Process finished with exit code 1

Who could kindly give me some tips?


網(wǎng)頁(yè)標(biāo)題:CannotaccesstypemethodonRubyclass
分享鏈接:http://weahome.cn/article/jseegp.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部