Module: XX::Markup

Extended by:
ClassMethods
Includes:
InstanceMethods
Included in:
HTML4, XHTML, XML
Defined in:
lib/xx.rb,
lib/xx-2.1.0.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: Error

Constant Summary collapse

XX_MARKUP_RECURSIVE_INCLUSION_PROC =

–}}}

method("included").to_proc

Class Method Summary collapse

Methods included from ClassMethods

xx_ancestors, xx_config, xx_config_for, xx_configure, xx_define_tag_method, xx_define_tmp_method, xx_remove_tag_method, xx_tag_method_name

Methods included from InstanceMethods

#_, #method_missing, #xx_ancestors, #xx_any_, #xx_cdata_, #xx_class, #xx_config, #xx_config_for, #xx_configure, #xx_define_tag_method, #xx_define_tmp_method, #xx_doc, #xx_markup_, #xx_parse_attributes, #xx_parse_yaml_attributes, #xx_remove_tag_method, #xx_tag_method_name, #xx_text_, #xx_which, #xx_with_doc_in_effect

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class XX::Markup::InstanceMethods

Class Method Details

.included(other, *a, &b) ⇒ Object


496
497
498
499
500
501
502
503
504
505
506
507
508
# File 'lib/xx.rb', line 496

def self::included other, *a, &b
#--{{{
  ret = super
  other.module_eval do
    include Markup::InstanceMethods
    extend Markup::ClassMethods
    class << self
      define_method("included", Markup::XX_MARKUP_RECURSIVE_INCLUSION_PROC)
    end
  end
  ret
#--}}}
end