Module: Cardname::Danger

Included in:
Cardname
Defined in:
cardname/lib/cardname/danger.rb

Overview

methods that have the potential to confuse cardname cache prompt cache resets

Class Method Summary collapse

Class Method Details

.dangerous_methodsObject



4
5
6
7
# File 'cardname/lib/cardname/danger.rb', line 4

def self.dangerous_methods
  bang_methods = String.instance_methods.select { |m| m.to_s.end_with?("!") }
  %i[replace concat clear].concat bang_methods
end