Class: ConTeXtSetup::Triplet

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, #to_html

Methods inherited from SetupXML

parse_xml, tag_method

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

#listObject

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