Class: ConTeXtSetup::Triplet
- Defined in:
- lib/tex/context/contextsetup.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
Returns the value of attribute list.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Return true if the two objects are the same.
-
#initialize(interface) ⇒ Triplet
constructor
A new instance of Triplet.
- #parse_xml(elt) ⇒ Object
Methods inherited from Param
#opt, #optional?, #sanitize_html, #to_html
Methods inherited from SetupXML
Constructor Details
#initialize(interface) ⇒ Triplet
Returns a new instance of Triplet.
710 711 712 713 |
# File 'lib/tex/context/contextsetup.rb', line 710 def initialize(interface) @interface=interface @list=false end |
Instance Attribute Details
#list ⇒ Object
Returns the value of attribute list.
706 707 708 |
# File 'lib/tex/context/contextsetup.rb', line 706 def list @list end |
Instance Method Details
#==(other) ⇒ Object
Return true if the two objects are the same. Comparison is based on the attribute ‘list’.
716 717 718 719 |
# File 'lib/tex/context/contextsetup.rb', line 716 def ==(other) return false unless Triplet===other other.respond_to?(:list) && self.list==other.list end |
#parse_xml(elt) ⇒ Object
707 708 709 |
# File 'lib/tex/context/contextsetup.rb', line 707 def parse_xml(elt) @list=elt.attributes["list"]=="yes" end |