Module: Subtype

Overview

Allow subclasses to return a string representing of the class, minus a common suffix also used in the superclass

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ void

This method returns an undefined value.

Add instance and class methods when this module is included



112
113
114
115
# File 'lib/nose/util.rb', line 112

def self.included(base)
  base.send :include, InstanceMethods
  base.extend ClassMethods
end