Feature flag
Feature Flag
class Document
attr_accessor :text
def self.toggle_encryption state: true
if state
def encrypt
StrongEncryptor.call text
end
else
def encrypt
Encryptor.call text
end
end
end
toggle_encryption
end