Module: XMLable::Mixins::StandaloneElement::ClassMethods

Defined in:
lib/xmlable/mixins/standalone_element.rb

Instance Method Summary collapse

Instance Method Details

#__tagString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Get tag name

Returns:

  • (String)


41
42
43
# File 'lib/xmlable/mixins/standalone_element.rb', line 41

def __tag
  @__tag
end

#tag(name) ⇒ Object

Describe element’s tag name

Parameters:

  • name (String, Symbol)


30
31
32
# File 'lib/xmlable/mixins/standalone_element.rb', line 30

def tag(name)
  @__tag = name.to_s
end