Sha256: 78896c03891603f905efa8f674658e109b356b2c9e89362d7c228378462d42aa
Contents?: true
Size: 634 Bytes
Versions: 9
Compression:
Stored size: 634 Bytes
Contents
# frozen_string_literal: true module OoxmlParser # Class for parsing `checkedState` tag class CheckBoxState < OOXMLDocumentObject # @return [Integer] number of state symbol attr_reader :value # @return [String] font name attr_reader :font # Parse CheckBoxState object # @param node [Nokogiri::XML:Element] node to parse # @return [CheckBoxState] result of parsing def parse(node) node.attributes.each do |key, value| case key when 'val' @value = value.value.to_i when 'font' @font = value.value end end self end end end
Version data entries
9 entries across 9 versions & 1 rubygems