Class: Omnivore::Document::Paragraph

Inherits:
Struct
  • Object
show all
Defined in:
lib/omnivore/document.rb

Overview

A Struct descibing a paragraph, including it’s :path in the document, :text, and various metrics, such as :text_density.

Instance Attribute Summary collapse

Instance Attribute Details

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



15
16
17
# File 'lib/omnivore/document.rb', line 15

def path
  @path
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



15
16
17
# File 'lib/omnivore/document.rb', line 15

def text
  @text
end

#text_densityObject

Returns the value of attribute text_density

Returns:

  • (Object)

    the current value of text_density



15
16
17
# File 'lib/omnivore/document.rb', line 15

def text_density
  @text_density
end