Sha256: b0a148e4acecf899ee70b52180b22af61c5098d249d9d96bdd0b6da5601c3236
Contents?: true
Size: 518 Bytes
Versions: 8
Compression:
Stored size: 518 Bytes
Contents
# frozen_string_literal: true module OoxmlParser # Class for `box`, `borderBox` data class Box < OOXMLDocumentObject attr_accessor :borders, :element def initialize(parent: nil) @borders = false @parent = parent end # Parse Box object # @param node [Nokogiri::XML:Element] node to parse # @return [Box] result of parsing def parse(node) @borders = true if node.name == 'borderBox' @element = MathRun.new(parent: self).parse(node) self end end end
Version data entries
8 entries across 8 versions & 1 rubygems