Class: NDFD::DWML::HeadExtractor

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(element) ⇒ HeadExtractor

Returns a new instance of HeadExtractor.


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

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

Instance Attribute Details

#elementObject (readonly)

Returns the value of attribute element


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

def element
  @element
end

#outputObject (readonly)

Returns the value of attribute output


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

def output
  @output
end

Instance Method Details

#processObject


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

def process
  build_product
  build_source
  output
end