module RBS::Types::Application
Attributes
Public Instance Methods
(untyped) → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/types.rb, line 206 def ==(other) other.is_a?(self.class) && other.name == name && other.args == args end
Also aliased as: eql?, eql?
() { (t) → void } → void
() → Enumerator[t, void]
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/types.rb, line 232 def each_type(&block) if block args.each(&block) else enum_for :each_type end end
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/types.rb, line 216 def free_variables(set = Set.new) set.tap do args.each do |arg| arg.free_variables(set) end end end
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/types.rb, line 244 def has_classish_type? each_type.any? {|type| type.has_classish_type? } end
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/types.rb, line 240 def has_self_type? each_type.any? {|type| type.has_self_type? } end
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/types.rb, line 212 def hash name.hash ^ args.hash end
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/types.rb, line 224 def to_s(level = 0) if args.empty? name.to_s else "#{name}[#{args.join(", ")}]" end end
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/types.rb, line 248 def with_nonreturn_void? each_type.any? do |type| if type.is_a?(Bases::Void) # `void` in immediate generics parameter is allowed false else type.with_nonreturn_void? # steep:ignore DeprecatedReference end end end