Method: Vcard::DirectoryInfo#encode

Defined in:
lib/vcard/dirinfo.rb

#encode(width = nil) ⇒ Object Also known as: to_s

The string encoding of the DirectoryInfo. See Field#encode for information about the width parameter.



235
236
237
238
239
240
# File 'lib/vcard/dirinfo.rb', line 235

def encode(width=nil)
  unless @string
    @string = @fields.collect { |f| f.encode(width) } . join ""
  end
  @string
end