Class: CDefFieldPropertyNode
- Inherits:
-
FieldPropertyNode
- Object
- ASTNode
- FieldPropertyNode
- CDefFieldPropertyNode
- Defined in:
- lib/ast_node.rb
Constant Summary
Constants inherited from ASTNode
ASTNode::DEFAULT_GRAPH_PROPERTIES, ASTNode::METRIC_PROC_FUNCTIONS
Instance Attribute Summary
Attributes inherited from FieldPropertyNode
Attributes inherited from ASTNode
#children, #graph_properties, #parent, #properties, #root_node
Instance Method Summary collapse
Methods inherited from FieldPropertyNode
Methods inherited from ASTNode
#add_child, #children_of_class, #compile, #config=, #default_colors, #initialize, #process_variables, #properties_to_url, #root?, #targets, #to_gdash, #url
Constructor Details
This class inherits a constructor from FieldPropertyNode
Instance Method Details
#apply_function(operand) ⇒ Object
355 356 357 358 359 360 361 362 |
# 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 |