Class: ConTeXtSetup::Reference
- Defined in:
- lib/tex/context/contextsetup.rb
Instance Attribute Summary collapse
-
#list ⇒ Object
Returns the value of attribute list.
-
#optional ⇒ Object
Returns the value of attribute optional.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(interface) ⇒ Reference
constructor
A new instance of Reference.
- #parse_xml(elt) ⇒ Object
Methods inherited from Param
#opt, #optional?, #sanitize_html, #to_html
Methods inherited from SetupXML
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
#list ⇒ Object
Returns the value of attribute list.
570 571 572 |
# File 'lib/tex/context/contextsetup.rb', line 570 def list @list end |
#optional ⇒ Object
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 |