lib/hanami/action/base_params.rb in hanami-controller-0.7.0 vs lib/hanami/action/base_params.rb in hanami-controller-0.7.1
- old
+ new
@@ -122,9 +122,18 @@
def to_h
@params
end
alias_method :to_hash, :to_h
+ # Iterates through params
+ #
+ # @param blk [Proc]
+ #
+ # @since 0.7.1
+ def each(&blk)
+ to_h.each(&blk)
+ end
+
private
# @since 0.7.0
# @api private
def _extract_params