Class: Browsable::HtmlExtractor::Extraction

Inherits:
Data
  • Object
show all
Defined in:
lib/browsable/html_extractor.rb

Overview

The aggregated extraction result returned to the middleware.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#asset_pathsObject (readonly)

Returns the value of attribute asset_paths

Returns:

  • (Object)

    the current value of asset_paths



24
25
26
# File 'lib/browsable/html_extractor.rb', line 24

def asset_paths
  @asset_paths
end

#inline_blocksObject (readonly)

Returns the value of attribute inline_blocks

Returns:

  • (Object)

    the current value of inline_blocks



24
25
26
# File 'lib/browsable/html_extractor.rb', line 24

def inline_blocks
  @inline_blocks
end

Instance Method Details

#resolved_pathsObject

Just the resolved on-disk paths — the shape downstream callers want.



26
27
28
# File 'lib/browsable/html_extractor.rb', line 26

def resolved_paths
  asset_paths.filter_map(&:resolved_path).uniq
end