Sha256: c1bc577aa46d68aacc6c0b4889ab8ecfc3710863ad4b9499b92e7d748d57a285
Contents?: true
Size: 435 Bytes
Versions: 1
Compression:
Stored size: 435 Bytes
Contents
module Mascherari module AttrMasked def attr_masked(*attrs, options) attrs.each do |attr| class_eval %{ def #{attr}_format @#{attr}_format ||= Formatter.new(#{options}) end def #{attr}_masked #{attr}_format.mask #{attr} end def #{attr}_unmasked #{attr}_format.unmask #{attr} end } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mascherari-0.0.2 | lib/mascherari/attr_masked.rb |