# File rbs-1.0.4/lib/rbs/definition_builder/ancestor_builder.rb, line 92 def self.class_instance(type_name,, params,, super_class)) new( type_name: type_name, params: params, super_class: super_class, self_types: nil, included_modules: [], included_interfaces: [], prepended_modules: [], extended_modules: nil, extended_interfaces: nil ) end
# File rbs-1.0.4/lib/rbs/definition_builder/ancestor_builder.rb, line 134 def self.interface(type_name,, params)) new( type_name: type_name, params: params, self_types: nil, included_modules: nil, included_interfaces: [], prepended_modules: nil, super_class: nil, extended_modules: nil, extended_interfaces: nil ) end
# File rbs-1.0.4/lib/rbs/definition_builder/ancestor_builder.rb, line 120 def self.module_instance(type_name,, params)) new( type_name: type_name, params: params, self_types: [], included_modules: [], included_interfaces: [], prepended_modules: [], super_class: nil, extended_modules: nil, extended_interfaces: nil ) end
# File rbs-1.0.4/lib/rbs/definition_builder/ancestor_builder.rb, line 15 def initialize(type_name,, params,, super_class,, self_types,, included_modules,, included_interfaces,, prepended_modules,, extended_modules,, extended_interfaces)) @type_name = type_name @params = params @super_class = super_class @self_types = self_types @included_modules = included_modules @included_interfaces = included_interfaces @prepended_modules = prepended_modules @extended_modules = extended_modules @extended_interfaces = extended_interfaces end
# File rbs-1.0.4/lib/rbs/definition_builder/ancestor_builder.rb, line 106 def self.singleton(type_name,, super_class)) new( type_name: type_name, params: nil, super_class: super_class, self_types: nil, included_modules: nil, included_interfaces: nil, prepended_modules: nil, extended_modules: [], extended_interfaces: [] ) end
# File rbs-1.0.4/lib/rbs/definition_builder/ancestor_builder.rb, line 27 def each_ancestor(&block) if block if s = super_class yield s end each_self_type(&block) each_included_module(&block) each_included_interface(&block) each_prepended_module(&block) each_extended_module(&block) each_extended_interface(&block) else enum_for :each_ancestor end end
# File rbs-1.0.4/lib/rbs/definition_builder/ancestor_builder.rb, line 84 def each_extended_interface(&block) if block extended_interfaces&.each(&block) else enum_for :each_extended_interface end end
# File rbs-1.0.4/lib/rbs/definition_builder/ancestor_builder.rb, line 76 def each_extended_module(&block) if block extended_modules&.each(&block) else enum_for :each_extended_module end end
# File rbs-1.0.4/lib/rbs/definition_builder/ancestor_builder.rb, line 60 def each_included_interface(&block) if block included_interfaces&.each(&block) else enum_for :each_included_interface end end
# File rbs-1.0.4/lib/rbs/definition_builder/ancestor_builder.rb, line 52 def each_included_module(&block) if block included_modules&.each(&block) else enum_for :each_included_module end end