Class: ConTeXtSetup::Position
- Inherits:
-
Param
show all
- Defined in:
- lib/tex/context/contextsetup.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Param
#opt, #optional?, #sanitize_html
Methods inherited from SetupXML
parse_xml, tag_method
Constructor Details
#initialize(interface) ⇒ Position
489
490
491
492
|
# File 'lib/tex/context/contextsetup.rb', line 489
def initialize(interface)
@interface=interface
@list=false
end
|
Instance Attribute Details
#list ⇒ Object
Returns the value of attribute list.
485
486
487
|
# File 'lib/tex/context/contextsetup.rb', line 485
def list
@list
end
|
Instance Method Details
#==(other) ⇒ Object
503
504
505
|
# File 'lib/tex/context/contextsetup.rb', line 503
def ==(other)
ConTeXtSetup::Position===other && @list==other.list
end
|
#parse_xml(elt) ⇒ Object
486
487
488
|
# File 'lib/tex/context/contextsetup.rb', line 486
def parse_xml(elt)
@list = elt.attributes["list"] == "yes"
end
|
#to_html(detail = true, cls = "first") ⇒ Object
493
494
495
496
497
498
499
500
501
502
|
# File 'lib/tex/context/contextsetup.rb', line 493
def to_html(detail=true,cls="first")
head=show
if detail
tr {
td(:class => cls) { head } + td(:class => cls) { "<i>number</i>, <i>number</i>"}
}
else
head
end
end
|