Class: BEL::Script::Term

Inherits:
Struct
  • Object
show all
Defined in:
lib/bel/parse_objects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • the current value of args



66
67
68
# File 'lib/bel/parse_objects.rb', line 66

def args
  @args
end

#fxObject

Returns the value of attribute fx

Returns:

  • the current value of fx



66
67
68
# File 'lib/bel/parse_objects.rb', line 66

def fx
  @fx
end

Instance Method Details

#<<(item) ⇒ Object



67
68
69
# File 'lib/bel/parse_objects.rb', line 67

def <<(item)
  self.args << item
end

#to_sObject



70
71
72
# File 'lib/bel/parse_objects.rb', line 70

def to_s
  "#{self.fx}(#{[args].flatten.join(',')})"
end