Registry / utility / inheritance-helper

inheritance-helper

JSON →
library0.2.5rbrubygemsunverified

Redefines class methods to support inheritance patterns.

gem install inheritance-helper
INSTALL
IMPORT
SIG · INHERITANCE-HELPER
I
inheritance-helper
utilityrubyv0.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

InheritanceHelper
require 'inheritance-helper'

Redefine a class method in a subclass

require 'inheritance-helper' class Parent extend InheritanceHelper def self.greet; 'Hello'; end end class Child < Parent redefine_singleton_method(:greet) { 'Hi' } end puts Child.greet
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.5latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
inheritance-helper — gem install inheritance-helper · libregistry