Class: VIPS::CSVWriter
- Defined in:
- lib/vips/writer.rb,
ext/writer.c more...
Instance Attribute Summary collapse
-
#separator ⇒ Object
Returns the value of attribute separator.
Instance Method Summary collapse
-
#initialize(image, options = {}) ⇒ CSVWriter
constructor
A new instance of CSVWriter.
- #write(path) ⇒ Object
Methods inherited from Writer
#exif=, #icc=, #image, #remove_exif, #remove_icc
Methods included from Header
#band_fmt, #bands, #exif, #exif?, #get, #icc, #icc?, #n_elements, #set, #sizeof_element, #sizeof_line, #sizeof_pel, #x_offset, #x_res, #x_size, #y_offset, #y_res, #y_size
Constructor Details
permalink #initialize(image, options = {}) ⇒ CSVWriter
Returns a new instance of CSVWriter.
11 12 13 14 15 16 |
# File 'lib/vips/writer.rb', line 11 def initialize(image, ={}) super image @separator = "\t" self.separator = [:separator] if .has_key?(:separator) end |
Instance Attribute Details
permalink #separator ⇒ Object
Returns the value of attribute separator.
9 10 11 |
# File 'lib/vips/writer.rb', line 9 def separator @separator end |
Instance Method Details
permalink #write(path) ⇒ Object
[View source]
18 19 20 |
# File 'lib/vips/writer.rb', line 18 def write(path) write_internal "#{path}:sep:#{@separator}" end |