Module: Jekyll::Favicon::Utils::Tag::ClassMethods
- Defined in:
- lib/jekyll/favicon/utils/tag.rb
Overview
Favicon rexml utils functions
Instance Method Summary collapse
- #build_element(name, parent = nil, config = {}) ⇒ Object
- #build_tag(name, attributes = {}) ⇒ Object
- #mutate_element(parent, changes = {}) ⇒ Object
Instance Method Details
#build_element(name, parent = nil, config = {}) ⇒ Object
60 61 62 |
# File 'lib/jekyll/favicon/utils/tag.rb', line 60 def build_element(name, parent = nil, config = {}) Tag.build_xml name, parent, config end |
#build_tag(name, attributes = {}) ⇒ Object
64 65 66 67 |
# File 'lib/jekyll/favicon/utils/tag.rb', line 64 def build_tag(name, attributes = {}) config = attributes.transform_keys { |key| "_#{key}" } Tag.build_xml name, nil, config end |
#mutate_element(parent, changes = {}) ⇒ Object
56 57 58 |
# File 'lib/jekyll/favicon/utils/tag.rb', line 56 def mutate_element(parent, changes = {}) Tag.mutate_xml parent, changes end |