Class: OpenXmlPackage::Part

Inherits:
Struct
  • Object
show all
Defined in:
lib/open_xml_package/part.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



2
3
4
# File 'lib/open_xml_package/part.rb', line 2

def content
  @content
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



2
3
4
# File 'lib/open_xml_package/part.rb', line 2

def path
  @path
end

Instance Method Details

#promise?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/open_xml_package/part.rb', line 9

def promise?
  self[:content].respond_to?(:get_input_stream)
end