Class: Table
- Inherits:
-
Array
- Object
- Array
- Table
- Includes:
- XX::HTML4::Strict, XX::XHTML::Strict, XX::XML
- Defined in:
- lib/rcov/xx.rb
Constant Summary
Constants included from XX::Markup
XX::Markup::XX_MARKUP_RECURSIVE_INCLUSION_PROC
Instance Method Summary collapse
Methods included from XX::XML
Methods included from XX::Markup
Methods included from XX::Markup::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 XX::Markup::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
Methods included from XX::HTML4::Strict
Methods included from XX::HTML4
Methods included from XX::XHTML::Strict
Methods included from XX::XHTML
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class XX::Markup::InstanceMethods
Instance Method Details
#doc ⇒ Object
710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 |
# File 'lib/rcov/xx.rb', line 710 def doc html_{ head_{ title_{ "xhtml/html4/xml demo" } } div_{ h_{ "< malformed html & un-escaped symbols" } } t_{ "escaped & text > <" } x_{ "<any_valid> xml </any_valid>" } div_(:style => :sweet){ em_ "this is a table" table_(:width => 42, :height => 42){ each{|row| tr_{ row.each{|cell| td_ cell } } } } } script_(:type => :dangerous){ cdata_{ "javascript" } } } end |
#to_html4 ⇒ Object
736 737 738 |
# File 'lib/rcov/xx.rb', line 736 def to_html4 html4_{ doc } end |
#to_xhtml ⇒ Object
733 734 735 |
# File 'lib/rcov/xx.rb', line 733 def to_xhtml xhtml_{ doc } end |
#to_xml ⇒ Object
739 740 741 |
# File 'lib/rcov/xx.rb', line 739 def to_xml xml_{ doc } end |