class DataAnon::Strategy::Field::Anonymous
Public Class Methods
new(&block)
click to toggle source
# File lib/strategy/field/anonymous.rb, line 8 def initialize &block @block = block end
Public Instance Methods
anonymize(field)
click to toggle source
# File lib/strategy/field/anonymous.rb, line 12 def anonymize field @block.call field end