Sha256: ca5afad3a27fff10b38d609856eaa17a00a5da43f8c840e80fea9c99239c1668

Contents?: true

Size: 489 Bytes

Versions: 6

Compression:

Stored size: 489 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
    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  
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubyfromexcel-0.0.10 lib/cells/value/value_cell.rb
rubyfromexcel-0.0.9 lib/cells/value/value_cell.rb
rubyfromexcel-0.0.7 lib/cells/value/value_cell.rb
rubyfromexcel-0.0.6 lib/cells/value/value_cell.rb
rubyfromexcel-0.0.5 lib/cells/value/value_cell.rb
rubyfromexcel-0.0.4 lib/cells/value/value_cell.rb