On this page
Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class · Ruby 3.4
Prism::BlockParametersNode
Represents a block’s parameters declaration.
-> (a, b = 1; local) { }
^^^^^^^^^^^^^^^^^
foo do |a, b = 1; local|
^^^^^^^^^^^^^^^^^
end
Class methods 2
Instance methods 16
Attributes
Read
Represents the local variables of the block.
-> (a, b = 1; local) { }
^^^^^
foo do |a, b = 1; local|
^^^^^
end
Read
Represents the parameters of the block.
-> (a, b = 1; local) { }
^^^^^^^^
foo do |a, b = 1; local|
^^^^^^^^
end