Module: XMLable::Mixins::StandaloneAttribute::ClassMethods

Defined in:
lib/xmlable/mixins/standalone_attribute.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 attribute name/tag

Returns:

  • (String)


28
29
30
# File 'lib/xmlable/mixins/standalone_attribute.rb', line 28

def __tag
  @__tag
end

#attr_name(tag) ⇒ Object

Describe attribute name/tag

Parameters:

  • tag (String, Symbol)


17
18
19
# File 'lib/xmlable/mixins/standalone_attribute.rb', line 17

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