lib/axlsx/workbook/worksheet/cell.rb in axlsx-1.1.6 vs lib/axlsx/workbook/worksheet/cell.rb in axlsx-1.1.7
- old
+ new
@@ -315,9 +315,13 @@
str << '><v>' << @value.to_s << '</v>'
end
str << '</c>'
end
+ def is_formula?
+ @type == :string && @value.start_with?('=')
+ end
+
private
# Utility method for setting inline style attributes
def set_run_style( validator, attr, value)
return unless INLINE_STYLES.include?(attr.to_s)