Class: OpenXml::Xlsx::Elements::DefinedName

Inherits:
Struct
  • Object
show all
Defined in:
lib/openxml/xlsx/elements/defined_name.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#formulaObject

Returns the value of attribute formula

Returns:

  • (Object)

    the current value of formula



4
5
6
# File 'lib/openxml/xlsx/elements/defined_name.rb', line 4

def formula
  @formula
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of 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