Class: RubyUnderscore::Call

Inherits:
AbstractSexp show all
Defined in:
lib/tree_converters.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractSexp

#enhancer, #sexp

Instance Method Summary collapse

Methods inherited from AbstractSexp

#argumentList, #decVcallCount, #enhance, #initialize, #process, #regularEnhance, #s, #subtreeNeedsEnhance?

Methods included from EnhancerHelper

#assertSexpIs, #chain, #clone, #needsEnhancing, #sexpEnhancingCount, #sexpNeedsEnhancing, #sexpOf

Constructor Details

This class inherits a constructor from RubyUnderscore::AbstractSexp

Instance Attribute Details

#argsObject

Returns the value of attribute args.



168
169
170
# File 'lib/tree_converters.rb', line 168

def args
  @args
end

#methodObject

Returns the value of attribute method.



168
169
170
# File 'lib/tree_converters.rb', line 168

def method
  @method
end

#targetObject

Returns the value of attribute target.



168
169
170
# File 'lib/tree_converters.rb', line 168

def target
  @target
end

Instance Method Details

#asArrayObject



177
178
179
# File 'lib/tree_converters.rb', line 177

def asArray
  [type, process(target), method]
end

#deconstruct(sexp) ⇒ Object



173
174
175
# File 'lib/tree_converters.rb', line 173

def deconstruct(sexp)
  @target, @method, @args = sexp
end

#typeObject



169
170
171
# File 'lib/tree_converters.rb', line 169

def type
  :call
end