Class: Nokogiri::XML::Document
- Inherits:
-
Node
- Object
- Node
- Nokogiri::XML::Document
- Defined in:
- lib/oddb2xml/builder.rb
Instance Attribute Summary collapse
-
#tag_suffix ⇒ Object
writeonly
Sets the attribute tag_suffix.
Instance Method Summary collapse
Instance Attribute Details
#tag_suffix=(value) ⇒ Object (writeonly)
Sets the attribute tag_suffix
8 9 10 |
# File 'lib/oddb2xml/builder.rb', line 8 def tag_suffix=(value) @tag_suffix = value end |
Instance Method Details
#create_element(name, *args, &block) ⇒ Object
10 11 12 13 |
# File 'lib/oddb2xml/builder.rb', line 10 def create_element name, *args, &block name += (@tag_suffix || '') create_element_origin(name, *args, &block) end |
#create_element_origin ⇒ Object
9 |
# File 'lib/oddb2xml/builder.rb', line 9 alias :create_element_origin :create_element |