Module: XX::Markup

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



512
513
514
515
516
517
518
519
520
521
522
523
524
# File 'lib/xx.rb', line 512

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