Registry / utility / abstract-type

abstract-type

JSON →
library0.0.7rbrubygemsunverified

Provides a module to declare abstract classes and methods in Ruby.

gem install abstract_type
INSTALL
IMPORT
SIG · ABSTRACT-TYPE
A
abstract-type
utilityrubyv0.0.7
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.

AbstractType
require 'abstract_type'

Define an abstract class with an abstract method

require 'abstract_type' class Animal include AbstractType abstract_method :speak end class Dog < Animal def speak 'Woof!' end end Dog.new.speak # => 'Woof!'
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.7latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
32
OpenAI (training)
1
Resources
abstract-type — gem install abstract-type · libregistry