Class: RubyUnderscore::Fcall

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.



150
151
152
# File 'lib/tree_converters.rb', line 150

def args
  @args
end

#methodObject

Returns the value of attribute method.



150
151
152
# File 'lib/tree_converters.rb', line 150

def method
  @method
end

Instance Method Details

#asArrayObject



160
161
162
# File 'lib/tree_converters.rb', line 160

def asArray
  [type, method]
end

#deconstruct(sexp) ⇒ Object



155
156
157
# File 'lib/tree_converters.rb', line 155

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

#typeObject



151
152
153
# File 'lib/tree_converters.rb', line 151

def type
  :fcall
end