Module: NetSuite::Actions::Initialize::Support

Defined in:
lib/netsuite/actions/initialize.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



57
58
59
60
61
62
63
64
# File 'lib/netsuite/actions/initialize.rb', line 57

def self.included(base)
  (class << base; self; end).instance_eval do # We have to do this because Class has a private
    define_method :initialize do |*args|      # #initialize method that this method will override.
      super(*args)
    end
  end
  base.extend(ClassMethods)
end