In Files

  • rbs-1.0.4/lib/rbs/ast/declarations.rb

Class/Module Index [+]

Quicksearch

RBS::AST::Declarations::NestedDeclarationHelper

Public Instance Methods

each_decl() click to toggle source
 
               # File rbs-1.0.4/lib/rbs/ast/declarations.rb, line 102
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() click to toggle source
 
               # File rbs-1.0.4/lib/rbs/ast/declarations.rb, line 90
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