Module: CanHaveSpecialMethods

Included in:
BlackRoi, ColorRoi, ImageRoi, Roi, VideoRoi
Defined in:
lib/mixins/can_have_special_methods.rb

Overview

We make use of public_methods for syntax completion, but sometimes we want just a subset of the public methods on an instance of some class. For example, only some of the methods on an Roi instance actually perform Roi evaluations, so we want to flag those. This mixin allows us to do that by calling special_method(:meth) after a method definition.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Public: Includes this module.

base - Class or Module to include this Module.

Returns nothing.



12
13
14
# File 'lib/mixins/can_have_special_methods.rb', line 12

def self.included(base)
  base.extend ClassMethods
end