Class: Uttk::Dumpers::Html::XmlMarkup

Inherits:
Builder::XmlMarkup
  • Object
show all
Defined in:
lib/uttk/dumpers/Html.rb

Overview

Use this one when you have made changes in lib/www @@base_url = “file://#Uttk.dir.parent.expand_path/www/”

Instance Method Summary collapse

Constructor Details

#initialize(*a, &b) ⇒ XmlMarkup

:nodoc:



26
27
28
29
# File 'lib/uttk/dumpers/Html.rb', line 26

def initialize ( *a, &b )
  @self = nil
  super
end

Instance Method Details

#expand_and_collapse(type, name) ⇒ Object



41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/uttk/dumpers/Html.rb', line 41

def expand_and_collapse ( type, name )
  td do
    a :onClick => "uttk_expand_all(#{type});" do
      itext! "Expand all #{name}"
    end
  end
  td do
    a :onClick => "uttk_collapse_all(#{type});" do
      itext! "Collapse all #{name}"
    end
  end
end

#ihtml!(str) ⇒ Object



36
37
38
39
40
# File 'lib/uttk/dumpers/Html.rb', line 36

def ihtml! ( str )
  _indent
  self << str.to_s.chomp
  _newline
end

#itext!(str) ⇒ Object



30
31
32
33
34
# File 'lib/uttk/dumpers/Html.rb', line 30

def itext! ( str )
  _indent
  text! str.to_s.chomp
  _newline
end