riboseinc/attr_masker

View on GitHub
lib/attr_masker.rb

Summary

Maintainability
A
0 mins
Test Coverage
# (c) 2017 Ribose Inc.
#

require "ruby-progressbar"

# Adds attr_accessors that mask an object's attributes
module AttrMasker
  autoload :Version, "attr_masker/version"
  autoload :Attribute, "attr_masker/attribute"
  autoload :Model, "attr_masker/model"

  autoload :Error, "attr_masker/error"
  autoload :Performer, "attr_masker/performer"

  module Maskers
    autoload :Replacing, "attr_masker/maskers/replacing"
    autoload :Simple, "attr_masker/maskers/simple"
  end

  require "attr_masker/railtie" if defined?(Rails)
end

Object.extend AttrMasker::Model