Module: SvgInlineFileExtractor

Defined in:
lib/svg_inline_file_extractor.rb,
lib/svg_inline_file_extractor/version.rb,
lib/svg_inline_file_extractor/svg_file.rb,
lib/svg_inline_file_extractor/inline_image.rb

Defined Under Namespace

Classes: InlineImage, SvgFile

Constant Summary collapse

VERSION =
"0.2.2"

Class Method Summary collapse

Class Method Details

.binary_images(xml_string) ⇒ Array<String>

Returns an array of binary strings containing the images in the SVG file.

Parameters:

  • xml_string (String)

    should be a full raw SVG file

Returns:

  • (Array<String>)

    an array of binary strings containing the images in the SVG file



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

def self.binary_images(xml_string)
  SvgFile.binary_images(xml_string)
end

.inline_images(xml_string) ⇒ Array<InlineImage>

Returns an array of the inline images found in the document.

Parameters:

  • xml_string (String)

    should be a full raw SVG file

Returns:

  • (Array<InlineImage>)

    an array of the inline images found in the document

See Also:



16
17
18
# File 'lib/svg_inline_file_extractor.rb', line 16

def self.inline_images(xml_string)
  SvgFile.inline_images(xml_string)
end