Module: LLT::Core::Containable::ClassMethods

Defined in:
lib/llt/core/containable.rb

Instance Method Summary collapse

Instance Method Details

#container_alias(al) ⇒ Object



119
120
121
122
# File 'lib/llt/core/containable.rb', line 119

def container_alias(al)
  alias_method al, :container
  alias_method "no_#{al}?", :empty?
end

#default_xml_tagObject



129
130
131
# File 'lib/llt/core/containable.rb', line 129

def default_xml_tag
  @default_xml_tag
end

#xml_tag(tag) ⇒ Object

Defines the default xml tag used by #to_xml



125
126
127
# File 'lib/llt/core/containable.rb', line 125

def xml_tag(tag)
  @default_xml_tag = tag
end