module RubyInterface

Constants

VERSION

Public Class Methods

included(klass) click to toggle source
# File lib/ruby_interface.rb, line 5
def self.included(klass)
  klass.extend ClassMethods

  klass.class_eval do
    singleton_class.send(:alias_method, :_old_inherited, :inherited) if respond_to?(:inherited)
  end

  def klass.inherited(child)
    child.name.nil? ? anonymous_class_definition(child) : named_class_definition(child)
    _old_inherited(child) if respond_to?(:_old_inherited)
  end
end