class FieldPropertyNode

Attributes

metric[RW]

Public Class Methods

new(line) click to toggle source
Calls superclass method ASTNode::new
# File lib/ast_node.rb, line 255
def initialize(line)
  super   
  line =~ /([\w]+)\.(\w+)\ (.*)$/
  @metric   = $1
  @function = $2
  @value    = $3
end

Public Instance Methods

apply_function(operand) click to toggle source
# File lib/ast_node.rb, line 263
def apply_function(operand)
  return "FUNCION(#{operand})"
end