Sha256: 10ed912bc3a4fdd761cda043b4aae93e89014355eae799d7912febaaf4fffc0d
Contents?: true
Size: 584 Bytes
Versions: 4
Compression:
Stored size: 584 Bytes
Contents
module OoxmlParser # Class for parsing `tile` tag class Tile < OOXMLDocumentObject attr_accessor :offset, :ratio, :flip, :align def initialize(offset = nil, ratio = nil, parent: nil) @offset = offset @ratio = ratio @parent = parent end # Parse Tile object # @param node [Nokogiri::XML:Element] node to parse # @return [Tile] result of parsing def parse(node) node.attributes.each do |key, value| case key when 'algn' @align = value_to_symbol(value) end end self end end end
Version data entries
4 entries across 4 versions & 1 rubygems