Class: Module

Inherits:
Object
  • Object
show all
Defined in:
lib/class-extension.rb

Overview

:nodoc: all

Instance Method Summary collapse

Instance Method Details

#append_features(mod) ⇒ Object



74
75
76
77
78
79
80
# File 'lib/class-extension.rb', line 74

def append_features(mod)
  append_features_without_class_extension(mod)
  mod.extend(class_extension)
  if mod.instance_of? Module
    mod.__send__(:class_extension).__send__(:include, class_extension)
  end
end

#append_features_without_class_extensionObject



33
# File 'lib/class-extension.rb', line 33

alias_method :append_features_without_class_extension, :append_features