class OoxmlParser::Tile
Class for parsing ‘tile` tag
Attributes
Public Class Methods
Source
# File lib/ooxml_parser/common_parser/common_data/colors/tile.rb, line 8 def initialize(offset = nil, ratio = nil, parent: nil) @offset = offset @ratio = ratio super(parent: parent) end
Calls superclass method
Public Instance Methods
Source
# File lib/ooxml_parser/common_parser/common_data/colors/tile.rb, line 17 def parse(node) node.attributes.each do |key, value| case key when 'algn' @align = value_to_symbol(value) end end self end
Parse Tile
object @param node [Nokogiri::XML:Element] node to parse @return [Tile] result of parsing