meteor 0.9.8.3 → 0.9.8.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0259cb94e3b99c242f3f2f31b45ba47346eb7ef
4
- data.tar.gz: 5382e88b354ec33d7a0590f751227a8314722cc1
3
+ metadata.gz: 59f584ef0f48caf28ee77f90d11b9acb3cbfe83b
4
+ data.tar.gz: c4e3ec505aa1f2fe306c81486e7c7b8083e5f45b
5
5
  SHA512:
6
- metadata.gz: a0e5fcd186e4d3ececb42ca98b00b99a1c8e9addbcaa6d1de3b3217aa33a27f204e9d739ef559914f8a68e08c1643c4425096676d62ee4d4bade9d06de9ebc51
7
- data.tar.gz: fbddc5b207a2a6284dacd8a829533fe3c13774bcad752a81b422253b00ede0cd317e2426229ba0b15cd94ec921a38025981497e2bc23fac1e5e34b44acf228e3
6
+ metadata.gz: b510b1f3e11c9334f166b8238ceea67d608a8ad95b0701f091a6a8b5fca52b664e45f0aa84cd7cacd3c56c2a927d1161552618a4c8c031fde800414e9fc2eaf4
7
+ data.tar.gz: db5e3d7a25c4c4732509e68743aad97014fd2c07efa54553bb867fe4b815aa50d08e5a5173e17633a189556ab8d8464848a3ad69c166f548e9a9d6467740b304
@@ -0,0 +1,112 @@
1
+ #!bin ruby
2
+ # -* coding: UTF-8 -*-
3
+
4
+ #require 'rubygems'
5
+ require 'meteor'
6
+
7
+ #Meteor::ElementFactory.bind(:html,'ml/sample_4.html', 'UTF-8')
8
+ Meteor::ElementFactory.options= {type: :html4}
9
+ Meteor::ElementFactory.link('ml/sample_4.html')
10
+
11
+ root = Meteor::ElementFactory.element('/ml/sample_4')
12
+
13
+ start_time = Time.new.to_f
14
+
15
+ elm_hello = root.element(id: 'hello')
16
+ elm_hello['color'] = 'red' #elm_hello.attr(color: 'red')
17
+ #elm_hello['color'] = nil #elm_hello.remove_attr('color')
18
+
19
+ elm_hello2 = root.element(id: 'hello2')
20
+ elm_hello2.content = 'Hello,Tester' #elm_hello2.content('Hello,Tester')
21
+
22
+ #elm_hello3 = root.cxtag('hello3')
23
+ #elm_hello3.content = "Hello,Hello\ntt" #elm_hello3.content = "Hello,Hello"
24
+ #puts elm_hello3.pattern
25
+ #puts elm_hello3.mixed_content
26
+ #puts elm_hello3.document
27
+ #puts elm_hello3.content
28
+ #puts elm_hello3.mixed_content
29
+
30
+ elm_text1 = root.element('input', id: 'text1')
31
+ #elm_text1['value'] = 'めも' #elm_text1.attr(value: 'めも')
32
+ #elm_text1.attr = {value: 'メモ'}
33
+ #elm_text1['disabled'] = true #elm_text1.attr(disabled: true)
34
+ elm_text1.attrs = {value: 'メモ', disabled: true, readonly: true}
35
+ #puts elm_text1.attrs
36
+ #elm_text1['disabled'] = nil #elm_text1.remove_attr('disabled')
37
+ #map = elm_text1.attr_map
38
+ #map.names.each { |item|
39
+ # puts item
40
+ # puts map.fetch(item)
41
+ #}
42
+
43
+ #elm_radio1 = root.element('input', id: 'radio1', type: 'radio')
44
+ ##elm_radio1 = root.css('input[id=radio1][type=radio]')
45
+ ##elm_radio1 = root.css('#radio1') #elm_radio1 = root.css('input#radio1')
46
+ ##elm_radio1 = root.css('.test') #elm_radio1 = root.css('input.test')
47
+ ##elm_radio1 = root.css('[id=radio1][type=radio]')
48
+ #elm_radio1['checked'] = 'true' #elm_radio1.attr(checked: 'true')
49
+ #puts elm_radio1.document
50
+
51
+ #elm_select1 = root.element('select', id: 'select1')
52
+ #elm_select1 = root.element('select')
53
+ #elm_select1.attr('multiple','true')
54
+ #elm_select1['multiple'] = true
55
+ ##puts elm_select1.attr('multiple')
56
+ #puts elm_select1['multiple']
57
+
58
+ #elm_option1 = root.element('option', id: 'option1')
59
+ #elm_option1['selected'] = true #elm_option1.attr(selected: 'true')
60
+ #elm_option1['selected'] = nil #elm_option1.remove_attr('selected')
61
+ #puts elm_option1['selected'] #puts elm_option1.attr('selected')
62
+ #puts elm_text1['readonly'] #puts elm_text1.attr('readonly')
63
+
64
+
65
+ elm_select2 = root.element('select', id: 'select2')
66
+ elm_select2['multiple'] = true
67
+ elm_option2 = elm_select2.element('option',id: 'option2')
68
+ co_elm = elm_option2.element()
69
+ 10.times { |i|
70
+ co_elm['value'] = i #co_elm.attr(value: i)
71
+ #'<' +
72
+ if i == 1 then
73
+ co_elm['selected'] = true #co_elm.attr(selected: 'true')
74
+ else
75
+ co_elm['selected'] = false #co_elm.attr(selected: 'false')
76
+ end
77
+ co_elm.content = i #co_elm.content(i)
78
+ co_elm['id'] = nil #co_elm.remove_attr('id')
79
+ co_elm.flash
80
+ }
81
+
82
+ elm_tr1 = root.element('tr',id: 'loop') #elm_tr1 = root.css('tr[id=loop]')
83
+ elm_ = root.element(elm_tr1)
84
+ elm_dt1_ = elm_.element(id: 'aa')
85
+ elm_dt2_ = elm_.element(id: 'bb')
86
+ elm_dt3_ = elm_.element(id: 'cc')
87
+ 10.times do |i|
88
+ elm_['loop'] = i
89
+ elm_dt1 = elm_dt1_.clone
90
+ elm_dt2 = elm_dt2_.clone
91
+ elm_dt3 = elm_dt3_.clone
92
+ elm_dt1.content = i
93
+ elm_dt2.content = i
94
+ elm_dt3.content = i
95
+ #"< \n" +
96
+ elm_.flash
97
+ end
98
+
99
+ elms = root.elements(id: 'sample')
100
+ #elms = root.css('div') #elms = root.css('div[class=test]')
101
+
102
+ elms.each_with_index{ |elm_,i|
103
+ elm_['style'] = i.to_s
104
+ }
105
+
106
+ root.flash
107
+
108
+ end_time = Time.new.to_f
109
+
110
+ puts root.document
111
+
112
+ puts '' + (end_time - start_time).to_s + ' sec'
@@ -1,102 +1,95 @@
1
1
  #!bin ruby
2
2
  # -* coding: UTF-8 -*-
3
3
 
4
- require 'rubygems'
4
+ #require 'rubygems'
5
5
  require 'meteor'
6
6
 
7
- #pf = Meteor::ParserFactory.new
8
- #pf.bind(:html5,'sample_5.html', 'UTF-8')
9
-
10
- #root = pf.element('sample_5')
11
-
12
- Meteor::ElementFactory.bind(:html5,"sample_5.html", 'UTF-8')
13
- root = Meteor::ElementFactory.element('sample_5')
7
+ Meteor::ElementFactory.link(:html5,"ml/sample_5.html", 'UTF-8')
8
+ root = Meteor::ElementFactory.element('/ml/sample_5')
14
9
 
15
10
  start_time = Time.new.to_f
16
11
 
17
- elm_hello = root.element('id','hello')
18
- #elm_hello.attr('color'=>'red')
19
- elm_hello['color'] = 'red'
20
- #elm_hello.remove_attribute('color')
12
+ elm_hello = root.element(id: 'hello')
13
+ elm_hello['color'] = 'red' #elm_hello.attr(color: 'red')
14
+ #elm_hello['color'] = nil #elm_hello.remove_attr('color')
21
15
 
22
- elm_hello2 = root.element('id'=>'hello2')
23
- #elm_hello2.content('Hello,Tester')
24
- elm_hello2.content = 'Hello,Tester'
16
+ elm_hello2 = root.element(id: 'hello2')
17
+ elm_hello2.content = 'Hello,Tester' #elm_hello2.content('Hello,Tester')
25
18
 
26
- elm_text1 = root.element('id','text1')
27
- #elm_text1.attr('value','めも')
28
- elm_text1['value'] = 'めも'
29
- #elm_text1.attr('disabled'=>true)
30
- elm_text1['disabled'] = true
31
- #elm_text1.attr('required'=>true)
32
- elm_text1['required'] = true
19
+ elm_text1 = root.element(id: 'text1')
20
+ elm_text1['value'] = 'めも' #elm_text1.attr(value: めも')
21
+ elm_text1['disabled'] = true #elm_text1.attr(disabled: true)
22
+ elm_text1['required'] = true #elm_text1.attr(required: true)
33
23
 
34
- #elm_text1.remove_attr('disabled')
24
+ #elm_text1['disabled'] = nil #elm_text1.remove_attr('disabled')
35
25
  #map = elm_text1.attr_map
36
26
  #map.names.each { |item|
37
27
  # puts item
38
28
  # puts map.fetch(item)
39
29
  #}
40
30
 
41
- #elm_radio1 = root.element('input','id'=>'radio1','type'=>'radio')
42
- ##elm_radio1.attr(,'checked'=>'true')
43
- #elm_radio1['checked'] = true
31
+ #elm_radio1 = root.element('input', id: 'radio1', type: 'radio')
32
+ #elm_radio1['checked'] = true #elm_radio1.attr(checked: 'true')
44
33
  #puts elm_radio1.document
45
34
 
46
- #elm_select1 = root.element('select','id'=>'select1')
35
+ #elm_select1 = root.element('select', id: 'select1')
47
36
  #elm_select1 = root.element('select')
48
- ##elm_select1.attr('multiple'=>'true')
49
- #elm_select1['multiple'] = true
50
- ##puts elm_select1.attr('multiple')
51
- #puts elm_select1['multiple']
52
-
53
- #elm_option1 = root.element('option','id'=>'option1')
54
- ##elm_option1.attr('selected'=>'true')
55
- #elm_option1['selected'] = true
56
- #elm_option1.remove_attr('selected')
57
- ##puts elm_option1.attr('selected')
58
- #puts elm_option1['selected']
59
- ##puts elm_text1.attr('readonly')
60
- #puts elm_text1['readonly']
61
-
62
- #elm_select2 = ps.element('select','id'=>'select2')
63
- #elm_select2['multiple'] = 'true'
64
- #elm_option2 = ps.element('option','id'=>'option2')
65
- #co_ps = elm_option2.element()
66
- #10.times { |i|
67
- # co_ps.attr('value',i.to_s)
68
- # #'<' +
69
- # if i == 1 then
70
- # co_ps.attr('selected'=>'true')
71
- # else
72
- # #co_ps.attr('selected'=>'false')
73
- # end
74
- # co_ps.content(i.to_s)
75
- # co_ps.remove_attr('id')
76
- # co_ps.flush
77
- #}
78
-
79
- elm_tr1 = root.element('tr','id'=>'loop')
37
+ #elm_select1['multiple'] = true #elm_select1.attr(multiple: 'true')
38
+ #puts elm_select1['multiple'] #puts elm_select1.attr('multiple')
39
+
40
+ #elm_option1 = root.element('option', id: 'option1')
41
+ #elm_option1['selected'] = true #elm_option1.attr(selected: 'true')
42
+ #elm_option1['selected'] = nil #elm_option1.remove_attr('selected')
43
+ #puts elm_option1['selected'] #puts elm_option1.attr('selected')
44
+ #puts elm_text1['readonly'] #puts elm_text1.attr('readonly')
45
+
46
+ elm_select2 = root.element('select',id: 'select2')
47
+ elm_select2['multiple'] = true
48
+ elm_option2 = elm_select2.element('option',id: 'option2')
49
+ co_elm = elm_option2.element()
50
+ 10.times { |i|
51
+ co_elm['value'] = i #co_elm.attr(value: i)
52
+ #'<' +
53
+ if i == 1 then
54
+ co_elm['selected'] = true #co_elm.attr(selected: true)
55
+ else
56
+ co_elm['selected'] = false #co_elm.attr(selected: false)
57
+ end
58
+ co_elm.content = i #co_elm.content(i)
59
+ co_elm['id'] = nil #co_elm.remove_attr('id')
60
+ co_elm.flash
61
+ }
62
+
63
+ elm_tr1 = root.element('tr',id: 'loop')
80
64
  elm_ = root.element(elm_tr1)
81
- elm_dt1_ = elm_.element('id'=>'aa')
82
- elm_dt2_ = elm_.element('id'=>'bb')
83
- elm_dt3_ = elm_.element('id'=>'cc')
65
+ elm_dt1_ = elm_.element(id: 'aa')
66
+ elm_dt2_ = elm_.element(id: 'bb')
67
+ elm_dt3_ = elm_.element(id: 'cc')
84
68
  10.times do |i|
85
- elm_['loop'] = i.to_s
69
+ elm_['loop'] = i
86
70
  elm_dt1 = elm_dt1_.clone
87
71
  elm_dt2 = elm_dt2_.clone
88
72
  elm_dt3 = elm_dt3_.clone
89
- elm_dt1.content=i.to_s
90
- elm_dt2.content=i.to_s
91
- elm_dt3.content=i.to_s
73
+ elm_dt1.content = i
74
+ elm_dt2.content = i
75
+ elm_dt3.content = i
92
76
  #"< \n" +
93
- elm_.flush
77
+ elm_.flash
94
78
  end
95
79
 
96
- root.flush
80
+ root.flash
97
81
 
98
82
  end_time = Time.new.to_f
99
83
 
100
84
  puts root.document
101
85
 
86
+ elms = root.elements('tr', id: 'loop')
87
+ #elms = root.elements('input', id: 'radio1', type: 'radio')
88
+ #elms = root.css('input[id=radio1][type=radio]')
89
+ elms.each{|elm|
90
+ puts elm.document
91
+ puts elm.attributes
92
+ puts elm.mixed_content
93
+ }
94
+
102
95
  puts '' + (end_time - start_time).to_s + ' sec'
@@ -0,0 +1,85 @@
1
+ #!bin ruby
2
+ # -* coding: UTF-8 -*-
3
+
4
+ #require 'rubygems'
5
+ require 'meteor'
6
+
7
+ Meteor::ElementFactory.link(:xhtml4,'ml/sample_x4.html', 'UTF-8')
8
+ root = Meteor::ElementFactory.element('/ml/sample_x4')
9
+
10
+ startTime = Time.new.to_f
11
+
12
+ elm_hello = root.element("id","hello")
13
+ elm_hello['color'] = 'red' #elm_hello.attr(color: "red")
14
+ #elm_hello['color'] = nil #elm_hello.remove_attr('color')
15
+
16
+ elm_hello2 = root.element(id: "hello2")
17
+ elm_hello2.content = "Hello,Tester" #elm_hello2.content("Hello,Tester")
18
+ #elm_hello2.remove
19
+
20
+ #elm_hello3 = root.cxtag("hello3")
21
+ #elm_hello3.content = "Hello,Hello\ntt" #elm_hello3.content("Hello,Hello\ntt")
22
+ #puts elm_hello3.content
23
+ #puts elm_hello3.mixed_content
24
+
25
+ #elm_text1 = root.element(id: "text1")
26
+ #elm_text1['value'] = 'めも' #elm_text1.attr(value: 'めも')
27
+ #elm_text1['disabled'] = true #elm_text1.attr(disabled: true)
28
+ #map = elm_text1.attr_map
29
+ #map.names.each { |item|
30
+ # puts item
31
+ # puts map.fetch(item)
32
+ #}
33
+
34
+ elm_radio1 = root.element("input", id: "radio1", type: "radio")
35
+ elm_radio1['checked'] = true #elm_radio1.attribute(checked: "true")
36
+
37
+ #elm_select1 = root.element("select",id: "select1")
38
+ #elm_select1 = root.element("select")
39
+ #elm_select1('multiple') = true #elm_select1.attr(multiple: true)
40
+ #puts elm_select1['multiple'] #puts elm_select1.attr("multiple")
41
+
42
+ #elm_option1 = root.element("option",id: "option1")
43
+ #elm_option1['selected'] = true #elm_option1.attr(selected: "true")
44
+ #puts elm_option1['selected'] #puts elm_option1.attr("selected")
45
+ #puts elm_option1['readonly'] #puts elm_text1.attr("readonly")
46
+
47
+ elm_select2 = root.element("select",id: "select2")
48
+ elm_select2["multiple"] = true
49
+ elm_option2 = elm_select2.element("option",id: "option2")
50
+ co_elm = elm_option2.element()
51
+ 10.times { |i|
52
+ if i == 1 then
53
+ co_elm['selected'] = true #co_elm.attr(selected: true)
54
+ else
55
+ co_elm['selected'] = false #co_elm.attr(selected: false)
56
+ end
57
+ co_elm['value'] = i #co_elm.attr(value: i)
58
+ co_elm['id'] = nil #co_elm.remove_attr("id")
59
+ co_elm.content = i #co_elm.content(i)
60
+ co_elm.flash
61
+ }
62
+
63
+ elm_tr1 = root.element('tr',id: 'loop')
64
+ elm_ = elm_tr1.element
65
+ elm_dt1_ = elm_.element(id: 'aa')
66
+ elm_dt2_ = elm_.element(id: 'bb')
67
+ elm_dt3_ = elm_.element(id: 'cc')
68
+ 10.times { |i|
69
+ elm_['loop'] = i
70
+ elm_dt1 = elm_dt1_.clone
71
+ elm_dt2 = elm_dt2_.clone
72
+ elm_dt3 = elm_dt3_.clone
73
+ elm_dt1.content = i #elm_dt1.content("<>\"' \n" << i.to_s)
74
+ elm_dt2.content = i
75
+ elm_dt3.content = i
76
+ elm_.flash
77
+ }
78
+
79
+ root.flash
80
+
81
+ endTime = Time.new.to_f
82
+
83
+ puts root.document
84
+
85
+ puts '' + (endTime - startTime).to_s + ' sec'
@@ -1,104 +1,83 @@
1
1
  #!bin ruby
2
2
  # -* coding: UTF-8 -*-
3
3
 
4
- require 'rubygems'
4
+ #require 'rubygems'
5
5
  require 'meteor'
6
6
 
7
- #pf = Meteor::ParserFactory.new
8
- #pf.bind(:xhtml5,"sample_x5.html", "UTF-8")
9
-
10
- #root = pf.element('sample_x5')
11
-
12
- Meteor::ElementFactory.bind(:xhtml5,'sample_x5.html', 'UTF-8')
13
- root = Meteor::ElementFactory.element('sample_x5')
7
+ Meteor::ElementFactory.link(:xhtml5,'ml/sample_x5.html', 'UTF-8')
8
+ root = Meteor::ElementFactory.element('/ml/sample_x5')
14
9
 
15
10
  startTime = Time.new.to_f
16
11
 
17
- elm_hello = root.element("id","hello")
18
- #elm_hello.attr("color"=>"red")
19
- elm_hello['color'] = 'red'
20
- #elm_hello.remove_attr('color')
21
-
22
- elm_hello2 = root.element("id"=>"hello2")
23
- #elm_hello2.content("Hello,Tester")
24
- elm_hello2.content = "Hello,Tester"
12
+ elm_hello = root.element(id: 'hello')
13
+ elm_hello['color'] = 'red' #elm_hello.attr(color: "red")
14
+ #elm_hello['color'] = nil #elm_hello.remove_attr('color')
15
+ #elm_hello.attr(color: nil)
25
16
 
17
+ elm_hello2 = root.element(id: 'hello2')
18
+ elm_hello2.content = "Hello,Tester" #elm_hello2.content("Hello,Tester")
26
19
  #elm_hello2.remove
20
+
27
21
  #elm_hello3 = root.cxtag("hello3")
28
- ##elm_hello3.content("Hello,Hello\ntt")
29
- #elm_hello3.content = "Hello,Hello\ntt"
22
+ #elm_hello3.content = "Hello,Hello\ntt" #elm_hello3.content("Hello,Hello\ntt")
30
23
  #puts elm_hello3.content
31
24
  #puts elm_hello3.mixed_content
32
25
 
33
- elm_text1 = root.element('id'=>'text1')
34
- #elm_text1.attr("value","めも")
35
- elm_text1['value'] = 'めも'
36
- #elm_text1.attr("disabled"=>true)
37
- elm_text1['disabled'] = true
38
- #elm_text1.attr('required'=>true)
39
- elm_text1['required'] = true
26
+ elm_text1 = root.element(id: 'text1')
27
+ elm_text1['value'] = 'めも' #elm_text1.attr(value: 'めも')
28
+ elm_text1['disabled'] = true #elm_text1.attr(disabled: true)
29
+ elm_text1['required'] = true #elm_text1.attr(required: true)
40
30
  #map = elm_text1.attr_map
41
31
  #map.names.each { |item|
42
32
  # puts item
43
33
  # puts map.fetch(item)
44
34
  #}
45
35
 
46
- #elm_radio1 = root.element("input","id"=>"radio1","type"=>"radio")
47
- ##elm_radio1.attr("checked"=>"true")
48
- #elm_radio1['checked'] = true
36
+ #elm_radio1 = root.element("input",id: "radio1", type: "radio")
37
+ #elm_radio1['checked'] = true #elm_radio1.attr(checked: "true")
49
38
 
50
- #elm_select1 = root.element("select","id"=>"select1")
39
+ #elm_select1 = root.element("select",id: "select1")
51
40
  #elm_select1 = root.element("select")
52
- ##elm_select1.attr("multiple"=>true)
53
- #elm_select1['multiple'] = true
54
- ##puts elm_select1.attr("multiple")
55
- #puts elm_select1['multiple']
56
- #elm_option1 = root.element("option","id"=>"option1")
57
- ##elm_option1.attr("selected"=>"true")
58
- #elm_option1['selected'] = true
59
- ##puts elm_option1.attr("selected")
60
- #puts elm_option1['selected']
61
- ##puts elm_text1.attr("readonly")
62
- #puts elm_text1['readonly']
63
-
64
- #elm_select2 = root.element("select","id"=>"select2")
65
- #elm_select2["multiple"] = "true"
66
- #elm_option2 = root.element("option","id"=>"option2")
67
- #co_ps = elm_option2.element()
68
- #10.times { |i|
69
- # if i == 1 then
70
- # #co_ps.attr("selected"=>"true")
71
- # co_ps['selected'] = true
72
- # else
73
- # #co_ps.attr("selected"=>"false")
74
- # co_ps['selected'] = false
75
- # end
76
- # #co_ps.attr("value"=>i.to_s)
77
- # co_ps['value'] = i.to_s
78
- # co_ps.remove_attr("id")
79
- # #co_ps.content(i.to_s)
80
- # co_ps.content = i.to_s
81
- # co_ps.flush
82
- #}
41
+ #elm_select1['multiple'] = true #elm_select1.attr(multiple: true)
42
+ #puts elm_select1['multiple'] #puts elm_select1.attr("multiple")
43
+ #elm_option1 = root.element("option",id: "option1")
44
+ #elm_option1['selected'] = true #elm_option1.attr(selected: "true")
45
+ #puts elm_option1['selected'] #puts elm_option1.attr("selected")
46
+ #puts elm_text1['readonly'] #puts elm_text1.attr("readonly")
47
+
48
+ elm_select2 = root.element("select",id: "select2")
49
+ elm_select2["multiple"] = true
50
+ elm_option2 = elm_select2.element("option",id: "option2")
51
+ co_elm = elm_option2.element()
52
+ 10.times { |i|
53
+ if i == 1 then
54
+ co_elm['selected'] = true #co_elm.attr(selected: true)
55
+ else
56
+ co_elm['selected'] = false #co_elm.attr(selected: false)
57
+ end
58
+ co_elm['value'] = i #co_elm.attr(value: i)
59
+ co_elm['id'] = nil #co_elm.remove_attr("id")
60
+ co_elm.content = i #co_elm.content(i)
61
+ co_elm.flash
62
+ }
83
63
 
84
- elm_tr1 = root.element('tr','id'=>'loop')
64
+ elm_tr1 = root.element('tr',id: 'loop')
85
65
  elm_ = elm_tr1.element
86
- elm_dt1_ = elm_.element('id'=>'aa')
87
- elm_dt2_ = elm_.element('id'=>'bb')
88
- elm_dt3_ = elm_.element('id'=>'cc')
66
+ elm_dt1_ = elm_.element(id: 'aa')
67
+ elm_dt2_ = elm_.element(id: 'bb')
68
+ elm_dt3_ = elm_.element(id: 'cc')
89
69
  10.times { |i|
90
- elm_['loop'] = i.to_s
70
+ elm_['loop'] = i
91
71
  elm_dt1 = elm_dt1_.clone
92
72
  elm_dt2 = elm_dt2_.clone
93
73
  elm_dt3 = elm_dt3_.clone
94
- #elm_dt1.content("<>\"' \n" << i.to_s)
95
- elm_dt1.content=i.to_s
96
- elm_dt2.content=i.to_s
97
- elm_dt3.content=i.to_s
98
- elm_.flush
74
+ elm_dt1.content = i #elm_dt1.content("<>\"' \n" << i.to_s)
75
+ elm_dt2.content = i
76
+ elm_dt3.content = i
77
+ elm_.flash
99
78
  }
100
79
 
101
- root.flush
80
+ root.flash
102
81
 
103
82
  endTime = Time.new.to_f
104
83