模块 RBS::AST::Declarations::MixinHelper

公共实例方法

each_mixin(&block) 点击切换源代码
# File rbs-3.8.0/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