Skip to content

Commit

Permalink
Allow to send arguments via #update!.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Feb 12, 2019
1 parent a2ef2e3 commit be71f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/build/environment/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def dup(parent: @parent, values: @values, update: @update)

attr_accessor :update

def update!
def update!(*arguments)
self.dup(update: nil).tap do |environment|
environment.constructor.instance_exec(*arguments, &@update)
end
Expand Down

0 comments on commit be71f2b

Please sign in to comment.