Module: NeverBounce::API::Feature::RequireAttr

Defined in:
lib/never_bounce/api/feature/require_attr.rb

Overview

Provide attribute validation method(s) to the owner class.

See Also:

  • InstanceMethods#initialize

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.load(owner) ⇒ nil

Parameters:

  • owner (Class)

Returns:

  • (nil)


10
11
12
13
# File 'lib/never_bounce/api/feature/require_attr.rb', line 10

def self.load(owner)
  return if owner < InstanceMethods
  owner.send(:include, InstanceMethods)
end