Module: RBS::AST::Declarations::MixinHelper
Instance Method Summary collapse
Instance Method Details
#each_mixin(&block) ⇒ Object
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/rbs/ast/declarations.rb', line 116 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 |