class ColourFieldPropertyNode

Public Instance Methods

apply_function(operand) click to toggle source
# File lib/ast_node.rb, line 278
def apply_function(operand)
  # In this case a function can't be applied cause graphite does not allow this
  # instead we modify a given
  aux = @value  
  aux = "##{@value}"   if @value =~ /[0-9A-Fa-f]{3,6}/
  
  self.root_node.graph_properties[:colorList] ||= Array.new
  self.root_node.graph_properties[:colorList][parent.index] = aux
  return operand
end