Class: Vpim::Attachment::Inline
- Inherits:
-
String
- Object
- String
- Vpim::Attachment::Inline
- Defined in:
- lib/vpim/attachment.rb
Overview
Extends a String to support some of the same methods as Uri.
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
The format of the inline data.
Instance Method Summary collapse
-
#initialize(s, format) ⇒ Inline
constructor
:nodoc:.
-
#to_io ⇒ Object
Return an IO object for the inline data.
Constructor Details
#initialize(s, format) ⇒ Inline
:nodoc:
53 54 55 56 |
# File 'lib/vpim/attachment.rb', line 53 def initialize(s, format) #:nodoc: @format = format super(s) end |
Instance Attribute Details
#format ⇒ Object (readonly)
The format of the inline data. See Attachment.
66 67 68 |
# File 'lib/vpim/attachment.rb', line 66 def format @format end |
Instance Method Details
#to_io ⇒ Object
Return an IO object for the inline data. See stringio
for more information.
60 61 62 |
# File 'lib/vpim/attachment.rb', line 60 def to_io StringIO.new(self) end |