module RBS::AST::Declarations::MixinHelper

Public Instance Methods

each_mixin(&block) click to toggle source
# File rbs-2.8.2/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