module Vcard

This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself.

This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself.

This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself.

This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself.

This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself.

This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself.

This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself.

Constants

VERSION

Public Class Methods

configuration() click to toggle source
# File lib/vcard.rb, line 290
def self.configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/vcard.rb, line 294
def self.configure
  yield configuration
end
decode_date_to_date(v) click to toggle source

Convert a RFC 2425 date into a Date object.

# File lib/vcard.rb, line 68
def self.decode_date_to_date(v)
  Date.new(*decode_date(v))
end
encode_paramtext(value) click to toggle source

param-value = paramtext / quoted-string paramtext = *SAFE-CHAR quoted-string = DQUOTE *QSAFE-CHAR DQUOTE

# File lib/vcard.rb, line 213
def self.encode_paramtext(value)
  if value =~ Bnf::ALL_SAFECHARS
    value
  else
    raise ::Vcard::Unencodable, "paramtext #{value.inspect}"
  end
end
encode_paramvalue(value) click to toggle source
# File lib/vcard.rb, line 221
def self.encode_paramvalue(value)
  if value =~ Bnf::ALL_SAFECHARS
    value
  elsif value =~ Bnf::ALL_QSAFECHARS
    %Q{"#{value}"}
  else
    raise ::Vcard::Unencodable, "param-value #{value.inspect}"
  end
end