Class: Nokogiri::XML::Document

Inherits:
Node
  • Object
show all
Defined in:
lib/oddb2xml/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tag_suffix=(value) ⇒ Object (writeonly)

Sets the attribute tag_suffix

Parameters:

  • value —

    the value to set the attribute tag_suffix to.



13
14
15
# File 'lib/oddb2xml/builder.rb', line 13

def tag_suffix=(value)
  @tag_suffix = value
end

Instance Method Details

#create_element(name, *args, &block) ⇒ Object



15
16
17
18
# File 'lib/oddb2xml/builder.rb', line 15

def create_element name, *args, &block
  name += (@tag_suffix || '')
  create_element_origin(name, *args, &block)
end

#create_element_origin ⇒ Object



14
# File 'lib/oddb2xml/builder.rb', line 14

alias :create_element_origin :create_element