Class: Vcard::Attachment::Inline

Inherits:
String
  • Object
show all
Defined in:
lib/vcard/attachment.rb

Overview

Extends a String to support some of the same methods as Uri.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s, format) ⇒ Inline

:nodoc:



48
49
50
51
# File 'lib/vcard/attachment.rb', line 48

def initialize(s, format) #:nodoc:
  @format = format
  super(s)
end

Instance Attribute Details

#formatObject (readonly)

The format of the inline data. See Attachment.



61
62
63
# File 'lib/vcard/attachment.rb', line 61

def format
  @format
end

Instance Method Details

#to_ioObject

Return an IO object for the inline data. See stringio for more information.



55
56
57
# File 'lib/vcard/attachment.rb', line 55

def to_io
  StringIO.new(self)
end