Class: OpenXml::Xlsx::Elements::DefinedName
- Inherits:
-
Struct
- Object
- Struct
- OpenXml::Xlsx::Elements::DefinedName
- Defined in:
- lib/openxml/xlsx/elements/defined_name.rb
Instance Attribute Summary collapse
-
#formula ⇒ Object
Returns the value of attribute formula.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#formula ⇒ Object
Returns the value of attribute formula
4 5 6 |
# File 'lib/openxml/xlsx/elements/defined_name.rb', line 4 def formula @formula end |
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/openxml/xlsx/elements/defined_name.rb', line 4 def name @name end |
Instance Method Details
#to_xml(xml) ⇒ Object
6 7 8 |
# File 'lib/openxml/xlsx/elements/defined_name.rb', line 6 def to_xml(xml) xml.definedName "#{formula}", name: name end |