Class: RubyFromExcel::ValueCell
- Inherits:
-
Cell
- Object
- Cell
- RubyFromExcel::ValueCell
show all
- Defined in:
- lib/cells/value/value_cell.rb
Instance Attribute Summary
Attributes inherited from Cell
#dependencies, #reference, #worksheet, #xml_type, #xml_value
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Cell
#alter_other_cells_if_required, #initialize, #inspect, #parse_xml, #test, #to_ruby, #to_s, #tolerance_for, #value, #value_for_including, #work_out_dependencies
Class Method Details
.for(other_cell) ⇒ Object
4
5
6
7
8
9
10
11
12
|
# File 'lib/cells/value/value_cell.rb', line 4
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
|
Instance Method Details
#can_be_replaced_with_value? ⇒ Boolean
18
19
20
|
# File 'lib/cells/value/value_cell.rb', line 18
def can_be_replaced_with_value?
true
end
|
#debug ⇒ Object
26
27
28
29
|
# File 'lib/cells/value/value_cell.rb', line 26
def debug
return "" unless xml_value
RubyFromExcel.debug(:cells,"#{worksheet.name}.#{reference} -> #{xml_value.inspect} (#{xml_type}) -> #{value_for_including.inspect}")
end
|
#ruby_value ⇒ Object
14
15
16
|
# File 'lib/cells/value/value_cell.rb', line 14
def ruby_value
value
end
|
#to_test(r = RubySpecWriter.new) ⇒ Object
22
23
24
|
# File 'lib/cells/value/value_cell.rb', line 22
def to_test( r = RubySpecWriter.new)
nil end
|