Class: DWML::HeadExtractor

Inherits:
Object
  • Object
show all
Defined in:
lib/dwml/head_extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ HeadExtractor

Returns a new instance of HeadExtractor.


7
8
9
10
# File 'lib/dwml/head_extractor.rb', line 7

def initialize(element)
  @element = element
  @output = {}
end

Instance Attribute Details

#elementObject (readonly)

Returns the value of attribute element


5
6
7
# File 'lib/dwml/head_extractor.rb', line 5

def element
  @element
end

#outputObject (readonly)

Returns the value of attribute output


5
6
7
# File 'lib/dwml/head_extractor.rb', line 5

def output
  @output
end

Instance Method Details

#processObject


12
13
14
15
16
# File 'lib/dwml/head_extractor.rb', line 12

def process
  build_product
  build_source
  output
end