lib/fast_excel/binding/format.rb in fast_excel-0.2.5 vs lib/fast_excel/binding/format.rb in fast_excel-0.2.6
- old
+ new
@@ -682,15 +682,22 @@
# @param [Integer] value
# @return [nil]
def set_theme(value)
Libxlsxwriter.format_set_theme(self, value)
end
+
+ [:font_size, :underline, :font_script, :rotation, :indent, :pattern, :border, :num_format, :font_name].each do |prop|
+ alias :"#{prop}=" :"set_#{prop}"
+ define_method(prop) do
+ self[prop]
+ end
+ end
end
class Format < FFI::Struct
include FormatWrappers
layout :file, :pointer,
- :xf_format_indices, HashTable.ptr,
+ :xf_format_indices, :pointer, #HashTable.ptr,
:num_xf_formats, :pointer,
:xf_index, :int32_t,
:dxf_index, :int32_t,
:num_format, [:char, 128],
:font_name, [:char, 128],
\ No newline at end of file