class CDefFieldPropertyNode
Public Instance Methods
apply_function(operand)
click to toggle source
# File lib/ast_node.rb, line 355 def apply_function(operand) if @raw_data =~ /(\w+),(\d+),\*/ return "scale(#{operand},#{$2})" elsif @raw_data =~ /(\w+),(\d+),\// return "scale(#{operand},#{1.0/$2.to_i})" end "FUNCTION(#{operand})" end