Class: RubyXL::NumberFormat
- Inherits:
-
OOXMLObject
- Object
- OOXMLObject
- RubyXL::NumberFormat
- Defined in:
- lib/rubyXL/objects/stylesheet.rb
Overview
Instance Method Summary collapse
Methods inherited from OOXMLObject
#before_write_xml, define_attribute, define_child_node, define_element_name, #dup, #index_in_collection, #initialize, obtain_class_variable, parse, set_countable, #write_xml
Constructor Details
This class inherits a constructor from RubyXL::OOXMLObject
Instance Method Details
#is_date_format? ⇒ Boolean
16 17 18 19 |
# File 'lib/rubyXL/objects/stylesheet.rb', line 16 def is_date_format? # v----- Toss all the escaped chars ------v v--- and see if any date-related remained !!(format_code.gsub(/(\"[^\"]*\"|\[[^\]]*\]|[\\_*].)/i, '') =~ /[dmyhs]/i) end |