123456789_123456789_123456789_123456789_123456789_

Module: RBS::AST::Declarations::NestedDeclarationHelper

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: lib/rbs/ast/declarations.rb

Instance Method Summary

Instance Method Details

#each_decl

[ GitHub ]

  
# File 'lib/rbs/ast/declarations.rb', line 117

def each_decl
  if block_given?
    members.each do |member|
      if member.is_a?(Base)
        yield(_ = member)
      end
    end
  else
    enum_for :each_decl
  end
end

#each_member

[ GitHub ]

  
# File 'lib/rbs/ast/declarations.rb', line 105

def each_member
  if block_given?
    members.each do |member|
      if member.is_a?(Members::Base)
        yield(_ = member)
      end
    end
  else
    enum_for :each_member
  end
end