Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Commit

Permalink
fix array delete_first method
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger committed Jun 20, 2016
1 parent 2e1f5d6 commit 7e52683
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rearmed/monkey_patches/array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def not_empty?
end

if array_enabled || Rearmed.dig(Rearmed.enabled_patches, :array, :delete_first) == true
def delete_first(item = (no_arg_passed = true; nil))
def delete_first(item=(no_arg_passed = true; nil))
if block_given? && !no_arg_passed
raise BothArgAndBlockError
elsif block_given?
Expand Down
2 changes: 1 addition & 1 deletion lib/rearmed/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Rearmed
VERSION = "1.0.2"
VERSION = "1.0.3"
end

0 comments on commit 7e52683

Please sign in to comment.