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
Source
# File lib/vcard.rb, line 290 def self.configuration @configuration ||= Configuration.new end
Source
# File lib/vcard.rb, line 294 def self.configure yield configuration end
Source
# File lib/vcard.rb, line 68 def self.decode_date_to_date(v) Date.new(*decode_date(v)) end
Convert a RFC 2425 date into a Date object.
Source
# 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
param-value = paramtext / quoted-string paramtext = *SAFE-CHAR quoted-string = DQUOTE *QSAFE-CHAR DQUOTE
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