Registry / utility / super-module

super-module

JSON →
library1.4.2rbrubygemsunverified

SuperModule allows defining class methods and method invocations the same way a super class does without using def included(base), succeeding ActiveSupport::Concern with lighter syntax.

gem install super_module
INSTALL
IMPORT
SIG · SUPER-MODULE
S
super-module
utilityrubyv1.4.2
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.

SuperModule
require 'super_module'

Define a module with SuperModule and include it in a class.

require 'super_module' class MyModule include SuperModule def self.greeting 'Hello' end def greet self.class.greeting end end class MyClass include MyModule end puts MyClass.new.greet
Debug
Known issues
breakingSuperModule requires Ruby 2.0 or higher.
fix
Upgrade Ruby to version 2.0 or later.
affects: < 1.0.0
Upgrade
Version history
1.4.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
Resources
super-module — gem install super-module · libregistry