class OoxmlParser::LinearGradient
Class for parsing ‘lin` tags
Attributes
Public Instance Methods
Source
# File lib/ooxml_parser/common_parser/common_data/colors/presentation_fill/gradient_color/linear_gradient.rb, line 11 def parse(node) node.attributes.each do |key, value| case key when 'ang' @angle = value.value.to_f / 100_000.0 when 'scaled' @scaled = value.value.to_i end end self end
Parse LinearGradient
object @param node [Nokogiri::XML:Element] node to parse @return [LinearGradient] result of parsing