Class: ConTeXtSetup::Index

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) ⇒ Index

Returns a new instance of Index.



518
519
520
521
# File 'lib/tex/context/contextsetup.rb', line 518

def initialize(interface)
  @interface=interface
  @list=false
end

Instance Attribute Details

#listObject

Returns the value of attribute list.



514
515
516
# File 'lib/tex/context/contextsetup.rb', line 514

def list
  @list
end

Instance Method Details

#==(other) ⇒ Object



522
523
524
# File 'lib/tex/context/contextsetup.rb', line 522

def ==(other)
  ConTeXtSetup::Index===other && @list==other.list
end

#parse_xml(elt) ⇒ Object



515
516
517
# File 'lib/tex/context/contextsetup.rb', line 515

def parse_xml(elt)
  @list = elt.attributes["list"] == "yes"
end