Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/imageruby/abstract/subclass_enum.rb
Class Method Summary collapse
-
.with_enumerable_subclasses ⇒ Object
Add mixin including each_subclass to the class (used on Encoder and Decoder class).
Class Method Details
.with_enumerable_subclasses ⇒ Object
Add mixin including each_subclass to the class (used on Encoder and Decoder class)
Example
class Decoder
with_enumerable_subclasses
...
end
56 57 58 59 60 |
# File 'lib/imageruby/abstract/subclass_enum.rb', line 56 def self.with_enumerable_subclasses class << self include RubyImage::SubclassEnumerator end end |