Method: Arrow::TestCase.inherited
- Defined in:
- lib/arrow/testcase.rb
.inherited(klass) ⇒ Object
Inheritance callback – adds @setupMethods and @teardownMethods ivars and accessors to the inheriting class.
106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/arrow/testcase.rb', line 106 def self::inherited( klass ) klass.module_eval { @setupMethods = [] @teardownMethods = [] class << self attr_accessor :setupMethods attr_accessor :teardownMethods end } end |