Module: Tangle::Currify::ClassMethods

Defined in:
lib/tangle/currify.rb

Overview

Class method extensions for currification of instance methods

Instance Method Summary collapse

Instance Method Details

#currified_methods(tag) ⇒ Object

Return a list of currified methods for a given tag.

:call-seq:

self.class.currified_methods(tag) => Array of Symbol


16
17
18
19
20
21
# File 'lib/tangle/currify.rb', line 16

def currified_methods(tag)
  mine = @currified_methods&.[](tag) || []
  return mine unless superclass.respond_to?(:currified_methods)

  superclass.currified_methods(tag) + mine
end