module RBS::Types::Application
Attributes
args[R]
name[R]
Public Instance Methods
==(other)
click to toggle source
# File rbs-1.4.0/lib/rbs/types.rb, line 202 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-1.4.0/lib/rbs/types.rb, line 228 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-1.4.0/lib/rbs/types.rb, line 212 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-1.4.0/lib/rbs/types.rb, line 208 def hash self.class.hash ^ name.hash ^ args.hash end
to_s(level = 0)
click to toggle source
# File rbs-1.4.0/lib/rbs/types.rb, line 220 def to_s(level = 0) if args.empty? name.to_s else "#{name}[#{args.join(", ")}]" end end