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:

  • (Object)

    the current value of args



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

def args
  @args
end

#fxObject

Returns the value of attribute fx

Returns:

  • (Object)

    the current value of fx



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

def fx
  @fx
end

Instance Method Details

#<<(item) ⇒ Object



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

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

#to_sObject



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

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