Registry / utility / object2module

object2module

JSON →
library0.5.1rbrubygemsunverified

Enables Ruby classes and objects to be used as modules.

gem install object2module
INSTALL
IMPORT
SIG · OBJECT2MODULE
O
object2module
utilityrubyv0.5.1
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.

Object2Module
require 'object2module'

Include an object as a module.

require 'object2module' class MyClass def my_method 'hello' end end obj = MyClass.new class Foo include obj end Foo.new.my_method # => 'hello'
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
object2module — gem install object2module · libregistry