class RBS::Diff
Public Class Methods
(type_name: TypeName, library_options: RBS::CLI::LibraryOptions, ?after_path: Array[String], ?before_path: Array[String], ?detail: boolish) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/diff.rb, line 5 def initialize(type_name:, library_options:, after_path: [], before_path: [], detail: false) @type_name = type_name @library_options = library_options @after_path = after_path @before_path = before_path @detail = detail end
Public Instance Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/diff.rb, line 13 def each_diff(&block) return to_enum(:each_diff) unless block before_instance_methods, before_singleton_methods, before_constant_children = build_methods(@before_path) after_instance_methods, after_singleton_methods, after_constant_children = build_methods(@after_path) each_diff_methods(:instance, before_instance_methods, after_instance_methods, &block) each_diff_methods(:singleton, before_singleton_methods, after_singleton_methods, &block) each_diff_constants(before_constant_children, after_constant_children, &block) end