Class: PinkShirt::SAX::Tables
- Inherits:
-
Base
- Object
- Base
- PinkShirt::SAX::Tables
show all
- Defined in:
- lib/pink_shirt/sax/tables.rb
Constant Summary
- TAGS =
%w(table th tr td tbody thead)
Instance Method Summary
(collapse)
Methods inherited from Base
#add_attributes, #initialize, #method_missing, #to_s
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class PinkShirt::SAX::Base
Instance Method Details
- (Object) end_table
11
12
|
# File 'lib/pink_shirt/sax/tables.rb', line 11
def end_table
end
|
- (Object) end_tbody
16
17
|
# File 'lib/pink_shirt/sax/tables.rb', line 16
def end_tbody
end
|
- (Object) end_td
48
49
|
# File 'lib/pink_shirt/sax/tables.rb', line 48
def end_td
end
|
- (Object) end_th
36
37
|
# File 'lib/pink_shirt/sax/tables.rb', line 36
def end_th
end
|
- (Object) end_thead
22
23
|
# File 'lib/pink_shirt/sax/tables.rb', line 22
def end_thead
end
|
- (Object) end_tr
28
29
30
|
# File 'lib/pink_shirt/sax/tables.rb', line 28
def end_tr
@output << "|\n"
end
|
- (Object) start_table(attrs)
5
6
7
8
9
|
# File 'lib/pink_shirt/sax/tables.rb', line 5
def start_table attrs
if add_attributes(attrs)
@output << "table#{add_attributes(attrs)}.\n"
end
end
|
- (Object) start_tbody(attrs)
13
14
|
# File 'lib/pink_shirt/sax/tables.rb', line 13
def start_tbody attrs
end
|
- (Object) start_td(attrs)
| or |(someclass). , never |.
40
41
42
43
44
45
46
|
# File 'lib/pink_shirt/sax/tables.rb', line 40
def start_td attrs
if add_attributes(attrs)
@output << "|#{add_attributes(attrs)}. "
else
@output << "|"
end
end
|
- (Object) start_th(attrs)
32
33
34
|
# File 'lib/pink_shirt/sax/tables.rb', line 32
def start_th attrs
@output << "|#{add_attributes(attrs)}_. "
end
|
- (Object) start_thead(attrs)
19
20
|
# File 'lib/pink_shirt/sax/tables.rb', line 19
def start_thead attrs
end
|
- (Object) start_tr(attrs)
25
26
|
# File 'lib/pink_shirt/sax/tables.rb', line 25
def start_tr attrs
end
|