Module ActsAsWrappedClass
In: lib/acts_as_wrapped_class.rb

Methods

Classes and Modules

Module ActsAsWrappedClass::ClassMethods
Module ActsAsWrappedClass::InstanceMethods
Class ActsAsWrappedClass::WrapperFinder

Constants

VERSION = "1.0.1"
WRAPPED_CLASSES = []

Public Instance methods

Mark a class as wrapped, creating a wrapper class which allows access to certain methods specified by EITHER the :methods safe list of the :except_methods blacklist. You cannot use both :methods and :except_methods at once.

  • options[:methods] contains a list of method names (symbols) to allow access to
  • options[:except_methods] contains a list of method names (symbols) to not allow access to
  • options[:constants] contains a list of constant names (symbols) to allow access to
  • options[:except_constants] contains a list of constant names (symbols) to not allow access to

[Validate]