Skip to content

Commit

Permalink
Merge pull request #30 from wonda-tea-coffee/delete_the_branch_of_num…
Browse files Browse the repository at this point in the history
…ber_to_bigdecimal

Delete the branch of GetProcessMem.number_to_bigdecimal
  • Loading branch information
schneems committed Jul 4, 2019
2 parents dbb5f05 + 80e8665 commit c2aa830
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/get_process_mem.rb
Expand Up @@ -3,14 +3,8 @@

# Cribbed from Unicorn Worker Killer, thanks!
class GetProcessMem
if Kernel.respond_to?(:BigDecimal)
private_class_method def self.number_to_bigdecimal(value)
BigDecimal(value)
end
else
private_class_method def self.number_to_bigdecimal(value)
BigDecimal.new(value)
end
private_class_method def self.number_to_bigdecimal(value)
BigDecimal(value)
end

private def number_to_bigdecimal(value)
Expand Down

0 comments on commit c2aa830

Please sign in to comment.