module RBS::Types::Application
Attributes
args[R]
name[R]
Public Instance Methods
==(other)
click to toggle source
# File rbs-3.2.2/lib/rbs/types.rb, line 211 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-3.2.2/lib/rbs/types.rb, line 237 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-3.2.2/lib/rbs/types.rb, line 221 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-3.2.2/lib/rbs/types.rb, line 217 def hash name.hash ^ args.hash end
to_s(level = 0)
click to toggle source
# File rbs-3.2.2/lib/rbs/types.rb, line 229 def to_s(level = 0) if args.empty? name.to_s else "#{name}[#{args.join(", ")}]" end end