Sha256: 1605f02121c17a43dd6a075d74c39ce95ec137e7281d4dc5fa3b196deb5a3e8d

Contents?: true

Size: 737 Bytes

Versions: 9

Compression:

Stored size: 737 Bytes

Contents

module RubyFromExcel
  class ValueCell < Cell
  
    def self.for(other_cell)
      vc = ValueCell.new(other_cell.worksheet)
      vc.reference = other_cell.reference
      vc.xml_value = other_cell.xml_value
      vc.xml_type = other_cell.xml_type
      vc.work_out_dependencies
      vc.debug
      vc
    end
  
    def ruby_value
      value
    end
  
    def can_be_replaced_with_value?
      true
    end
  
    def to_test( r = RubySpecWriter.new)
      nil # i.e., don't bother with tests for simple_values
    end
    
    def debug
      return "" unless xml_value
      RubyFromExcel.debug(:cells,"#{worksheet.name}.#{reference} -> #{xml_value.inspect} (#{xml_type}) -> #{value_for_including.inspect}")
    end
    
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rubyfromexcel-0.0.23 lib/cells/value/value_cell.rb
rubyfromexcel-0.0.22 lib/cells/value/value_cell.rb
rubyfromexcel-0.0.21 lib/cells/value/value_cell.rb
rubyfromexcel-0.0.20 lib/cells/value/value_cell.rb
rubyfromexcel-0.0.19 lib/cells/value/value_cell.rb
rubyfromexcel-0.0.18 lib/cells/value/value_cell.rb
rubyfromexcel-0.0.17 lib/cells/value/value_cell.rb
rubyfromexcel-0.0.16 lib/cells/value/value_cell.rb
rubyfromexcel-0.0.13 lib/cells/value/value_cell.rb