Module: Rubyzen::Providers::AssignmentsProvider
- Defined in:
- lib/rubyzen/providers/assignments_provider.rb
Overview
Provides local-variable assignments within a method or block.
Instance Method Summary collapse
Instance Method Details
#assignments ⇒ Rubyzen::Collections::AssignmentsCollection
6 7 8 9 10 11 12 |
# File 'lib/rubyzen/providers/assignments_provider.rb', line 6 def assignments Collections::AssignmentsCollection.new( node.each_descendant(:lvasgn).map do |assignment_node| Declarations::AssignmentDeclaration.new(assignment_node, self) end ) end |