Skip to content

Commit

Permalink
Merge pull request #741 from seanhandley/patch-1
Browse files Browse the repository at this point in the history
Use class_eval to add behaviour to Numeric
  • Loading branch information
benlangfeld committed Feb 10, 2018
2 parents 521b771 + 7b59d95 commit 92e90f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/whenever/numeric.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Numeric
Numeric.class_eval do
def respond_to?(method, include_private = false)
super || Whenever::NumericSeconds.public_method_defined?(method)
end
Expand Down

0 comments on commit 92e90f0

Please sign in to comment.