module RBS::Types::Application
Attributes
args[R]
name[R]
Public Instance Methods
==(other)
click to toggle source
# File rbs-2.1.0/lib/rbs/types.rb, line 209 def ==(other) other.is_a?(self.class) && other.name == name && other.args == args end
Also aliased as: eql?
each_type(&block)
click to toggle source
# File rbs-2.1.0/lib/rbs/types.rb, line 235 def each_type(&block) if block args.each(&block) else enum_for :each_type end end
free_variables(set = Set.new)
click to toggle source
# File rbs-2.1.0/lib/rbs/types.rb, line 219 def free_variables(set = Set.new) set.tap do args.each do |arg| arg.free_variables(set) end end end
hash()
click to toggle source
# File rbs-2.1.0/lib/rbs/types.rb, line 215 def hash self.class.hash ^ name.hash ^ args.hash end
to_s(level = 0)
click to toggle source
# File rbs-2.1.0/lib/rbs/types.rb, line 227 def to_s(level = 0) if args.empty? name.to_s else "#{name}[#{args.join(", ")}]" end end