Module: Tangle::Currify::ClassMethods
- Defined in:
- lib/tangle/currify.rb
Overview
Class method extensions for currification of instance methods
Instance Method Summary collapse
-
#currified_methods(tag) ⇒ Object
Return a list of currified methods for a given tag.
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
23 24 25 26 27 28 |
# File 'lib/tangle/currify.rb', line 23 def currified_methods(tag) mine = @currified_methods&.[](tag) || [] return mine unless superclass.respond_to?(:currified_methods) superclass.currified_methods(tag) + mine end |