Class: ConTeXtSetup::Reference

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

Returns a new instance of Reference.



575
576
577
578
# File 'lib/tex/context/contextsetup.rb', line 575

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

Instance Attribute Details

#listObject

Returns the value of attribute list.



570
571
572
# File 'lib/tex/context/contextsetup.rb', line 570

def list
  @list
end

#optionalObject

Returns the value of attribute optional.



570
571
572
# File 'lib/tex/context/contextsetup.rb', line 570

def optional
  @optional
end

Instance Method Details

#==(other) ⇒ Object



579
580
581
# File 'lib/tex/context/contextsetup.rb', line 579

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

#parse_xml(elt) ⇒ Object



571
572
573
574
# File 'lib/tex/context/contextsetup.rb', line 571

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