Module: XX::Markup

Extended by:
ClassMethods
Includes:
InstanceMethods
Included in:
HTML4, XHTML, XML, XMLish
Defined in:
lib/rcov/xx.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_, #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



538
539
540
541
542
543
544
545
546
547
548
549
550
# File 'lib/rcov/xx.rb', line 538

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