Module: RBS::AST::Declarations::MixinHelper
Instance Method Summary collapse
Instance Method Details
#each_mixin(&block) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/rbs/ast/declarations.rb', line 34 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 |