module XMLable::Mixins::ContentStorage::ClassMethods
Public Instance Methods
__content_method()
click to toggle source
Get content method
@return [String, nil, false]
# File lib/xmlable/mixins/content_storage.rb, line 131 def __content_method return @__content_method if instance_variable_defined?(:@__content_method) @__content_method = __nested(:@__content_method) end
content(name)
click to toggle source
Define content method
If given +false+ name than content isn't available to this element.
@param [String, Symbol, false] name
# File lib/xmlable/mixins/content_storage.rb, line 122 def content(name) @__content_method = name.is_a?(String) ? name.to_sym : name end