Module: Virginity::Vcard21
- Defined in:
- lib/virginity/vcard21/base.rb,
lib/virginity/vcard21/parser.rb,
lib/virginity/vcard21/reader.rb,
lib/virginity/vcard21/writer.rb
Defined Under Namespace
Modules: Reader, Writer Classes: ParseError, Parser
Constant Summary collapse
- KNOWNTYPES =
FIXME: X-FUNAMBOL-INSTANTMESSENGER shouldnt be here! it’s just to get funambol’s thunderbird client to work
%w(DOM INTL POSTAL PARCEL HOME WORK PREF VOICE FAX MSG CELL PAGER BBS MODEM CAR ISDN VIDEO AOL APPLELINK ATTMAIL CIS EWORLD INTERNET IBMMAIL MCIMAIL POWERSHARE PRODIGY TLX X400 GIF CGM WMF BMP MET PMB DIB PICT TIFF PDF PS JPEG QTIME MPEG MPEG2 AVI WAVE AIFF PCM X509 PGP) + %w(X-FUNAMBOL-INSTANTMESSENGER INTERNET)
- ENCODING =
additions to work with common errors. This means that we now cannot have a param with the name INTERNET in vcard2.1
/^ENCODING$/i
- BASE64 =
/^BASE64$/i
- QUOTED_PRINTABLE =
/^quoted-printable$/i
- SEVEN_BIT =
/^7bit$/i
- EIGHT_BIT =
/^8bit$/i
Class Method Summary collapse
- .base64_param?(param) ⇒ Boolean
- .eight_bit?(param) ⇒ Boolean
- .qp_param?(param) ⇒ Boolean
- .seven_bit?(param) ⇒ Boolean
Class Method Details
.base64_param?(param) ⇒ Boolean
13 14 15 |
# File 'lib/virginity/vcard21/base.rb', line 13 def self.base64_param?(param) param.key =~ ENCODING and param.value =~ BASE64 end |
.eight_bit?(param) ⇒ Boolean
25 26 27 |
# File 'lib/virginity/vcard21/base.rb', line 25 def self.eight_bit?(param) param.key =~ ENCODING and param.value =~ EIGHT_BIT end |
.qp_param?(param) ⇒ Boolean
17 18 19 |
# File 'lib/virginity/vcard21/base.rb', line 17 def self.qp_param?(param) param.key =~ ENCODING and param.value =~ QUOTED_PRINTABLE end |