Class: Bulbasaur::ExtractMetaInformationsFromHTML
- Inherits:
-
Object
- Object
- Bulbasaur::ExtractMetaInformationsFromHTML
- Defined in:
- lib/bulbasaur/extracts/extract_meta_informations_from_html.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(html) ⇒ ExtractMetaInformationsFromHTML
constructor
A new instance of ExtractMetaInformationsFromHTML.
Constructor Details
#initialize(html) ⇒ ExtractMetaInformationsFromHTML
Returns a new instance of ExtractMetaInformationsFromHTML.
4 5 6 |
# File 'lib/bulbasaur/extracts/extract_meta_informations_from_html.rb', line 4 def initialize(html) @html = html end |
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/bulbasaur/extracts/extract_meta_informations_from_html.rb', line 8 def call = [] do || name = name_of value = value_of << { name: name, value: value } unless name.nil? || value.nil? end end |