Module: Rubyzen::Providers::ArgumentsProvider

Included in:
Declarations::CallSiteDeclaration
Defined in:
lib/rubyzen/providers/arguments_provider.rb

Overview

Provides the arguments passed at a call site (or macro), as expressions.

Instance Method Summary collapse

Instance Method Details

#argumentsRubyzen::Collections::ArgumentsCollection



6
7
8
9
10
11
12
# File 'lib/rubyzen/providers/arguments_provider.rb', line 6

def arguments
  Collections::ArgumentsCollection.new(
    node.arguments.map do |argument_node|
      Declarations::ExpressionDeclaration.new(argument_node, self)
    end
  )
end