Method: Module#append_features

Defined in:
lib/mega/classmethods.rb

#append_features(base) ⇒ Object



47
48
49
50
51
52
53
54
# File 'lib/mega/classmethods.rb', line 47

def append_features(base)
  append_features_no_classmethods(base)
  begin clsm = self::ClassMethods
  rescue NameError
    clsm = nil
  end
  base.extend(clsm) if clsm
end