Class: ConTeXtSetup::Define
- Defined in:
- lib/tex/context/contextsetup.rb
Instance Attribute Summary collapse
-
#keywords ⇒ Object
Returns the value of attribute keywords.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(interface) ⇒ Define
constructor
A new instance of Define.
- #parse_xml(elt) ⇒ Object
Methods inherited from SetupXML
Constructor Details
#initialize(interface) ⇒ Define
Returns a new instance of Define.
145 146 147 148 149 |
# File 'lib/tex/context/contextsetup.rb', line 145 def initialize(interface) @interface=interface @name=nil @keywords = [] end |
Instance Attribute Details
#keywords ⇒ Object
Returns the value of attribute keywords.
138 139 140 |
# File 'lib/tex/context/contextsetup.rb', line 138 def keywords @keywords end |
#name ⇒ Object
Returns the value of attribute name.
138 139 140 |
# File 'lib/tex/context/contextsetup.rb', line 138 def name @name end |
Instance Method Details
#parse_xml(elt) ⇒ Object
139 140 141 142 143 144 |
# File 'lib/tex/context/contextsetup.rb', line 139 def parse_xml(elt) @name=elt.attributes["name"] elt.each_element do |constant| @keywords << constant.attributes["type"] end end |