Class: ConTeXtSetup::Inherit

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

Methods inherited from SetupXML

parse_xml, tag_method

Constructor Details

#initialize(interface) ⇒ Inherit

parse_xml



620
621
622
623
# File 'lib/tex/context/contextsetup.rb', line 620

def initialize(interface)
  @interface=interface
  @name=nil
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



616
617
618
# File 'lib/tex/context/contextsetup.rb', line 616

def name
  @name
end

Instance Method Details

#==(other) ⇒ Object



627
628
629
# File 'lib/tex/context/contextsetup.rb', line 627

def ==(other)
  Inherit===other && @name==other.name
end

#parse_xml(elt) ⇒ Object



617
618
619
# File 'lib/tex/context/contextsetup.rb', line 617

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

#to_htmlObject



624
625
626
# File 'lib/tex/context/contextsetup.rb', line 624

def to_html
  "see also #{@name}"
end