Class: Uttk::Dumpers::Html::Leaf
- Defined in:
- lib/uttk/dumpers/Html.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from BaseNode
#contents, #father, #id, #name, #state, #status
Instance Method Summary collapse
Methods inherited from BaseNode
Constructor Details
This class inherits a constructor from Uttk::Dumpers::Html::BaseNode
Instance Method Details
#html_contents ⇒ Object
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/uttk/dumpers/Html.rb', line 123 def html_contents return '""' if state == 2 x = XmlMarkup.new x.table :class => 'attribute' do contents.each do |k, v| x.tr do x.td "#{k}:", :class => 'key' x.td :class => 'value' do x.pre clean_yaml_str(v), :class => 'attribute' end end end end x.target!.dump end |
#to_html_uttk_js(status_h) ⇒ Object
120 121 122 |
# File 'lib/uttk/dumpers/Html.rb', line 120 def to_html_uttk_js ( status_h ) "uttk_add_leaf(#@id, #@father, #@state, #{html}, #{html_contents});" end |