class Rouge::InheritableList

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/rouge/util.rbs

class Rouge::InheritableList
  def each: () -> Array[Proc]
  def own_entries: () -> Array[Proc]
end

def each(&b)

Experimental RBS support (using type sampling data from the type_fusion project).

def each: () -> Proc

This signature was generated using 3 samples from 1 application.

def each(&b)
  return enum_for(:each) unless block_given?
  parent.each(&b)
  own_entries.each(&b)
end

def initialize(parent=nil)

def initialize(parent=nil)
  @parent = parent
end

def own_entries

Experimental RBS support (using type sampling data from the type_fusion project).

def own_entries: () -> Proc

This signature was generated using 1 sample from 1 application.

def own_entries
  @own_entries ||= []
end

def parent

def parent
  @parent ||= []
end

def push(o)

def push(o)
  own_entries << o
end