Class: ToSource::Emitter::ActualArguments

Inherits:
ToSource::Emitter show all
Defined in:
lib/to_source/emitter/actual_arguments.rb

Overview

Emitter for arguments node

Constant Summary

Constants inherited from ToSource::Emitter

REGISTRY

Instance Attribute Summary

Attributes inherited from ToSource::Emitter

#buffer, #node

Instance Method Summary collapse

Methods inherited from ToSource::Emitter

build, define_predicate, #initialize, run, #source

Constructor Details

This class inherits a constructor from ToSource::Emitter

Instance Method Details

#any?true, false

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Test if any arguments are present

Returns:

  • (true)

    if any argument is present

  • (false)

    otherwise



18
19
20
# File 'lib/to_source/emitter/actual_arguments.rb', line 18

def any?
  normal? || splat?
end