Sha256: 4d3b19d9fdcf3f66cc0d9130e96fcacd237564b3399353ffe05b5d95e663535f

Contents?: true

Size: 488 Bytes

Versions: 5

Compression:

Stored size: 488 Bytes

Contents

# coding: utf-8
# 计算
class Sheet2 < Spreadsheet
  def b4; "coal"; end
  def c4; "煤炭"; end
  def d4; 100.0; end
  def e4; @e4 ||= d4*sheet1.d6; end
  def b5; "oil"; end
  def c5; "石油"; end
  def d5; 100.0; end
  def e5; @e5 ||= d5*sheet1.d7; end
  def b6; "gas"; end
  def c6; "气"; end
  def d6; 100.0; end
  def e6; @e6 ||= d6*sheet1.d8; end
  def b7; "sum"; end
  def c7; "合计"; end
  def d7; @d7 ||= sum(a('d4','d6')); end
  def e7; @e7 ||= sum(a('e4','e6')); end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubyfromexcel-0.0.23 examples/ruby-versions/example-ruby/sheets/sheet2.rb
rubyfromexcel-0.0.22 examples/ruby-versions/example-ruby/sheets/sheet2.rb
rubyfromexcel-0.0.21 examples/ruby-versions/example-ruby/sheets/sheet2.rb
rubyfromexcel-0.0.20 examples/ruby-versions/example-ruby/sheets/sheet2.rb
rubyfromexcel-0.0.19 examples/ruby-versions/example-ruby/sheets/sheet2.rb