Class: VIPS::CSVWriter

Inherits:
Writer
  • Object
show all
Defined in:
lib/vips/writer.rb,
ext/writer.c

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#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, options={})
  super image
  @separator = "\t"

  self.separator = options[:separator] if options.has_key?(:separator)
end

Instance Attribute Details

#separatorObject

Returns the value of attribute separator.



9
10
11
# File 'lib/vips/writer.rb', line 9

def separator
  @separator
end

Instance Method Details

#write(path) ⇒ Object



18
19
20
# File 'lib/vips/writer.rb', line 18

def write(path)
  write_internal "#{path}:sep:#{@separator}"
end