Module: RBS::AST::Declarations::MixinHelper
Instance Method Summary collapse
Instance Method Details
#each_mixin(&block) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/rbs/ast/declarations.rb', line 36 def each_mixin(&block) if block @mixins ||= begin _ = members.select do |member| case member when Members::Include, Members::Extend, Members::Prepend true else false end end end @mixins.each(&block) else enum_for :each_mixin end end |