Object
# File rbs-1.4.0/lib/rbs/types.rb, line 272 def initialize(name:, args:, location:) @name = name @args = args @location = location end
# File rbs-1.4.0/lib/rbs/types.rb, line 288 def map_type_name(&block) ClassInstance.new( name: yield(name, location, self), args: args.map {|type| type.map_type_name(&block) }, location: location ) end
# File rbs-1.4.0/lib/rbs/types.rb, line 282 def sub(s) self.class.new(name: name, args: args.map {|ty| ty.sub(s) }, location: location) end
# File rbs-1.4.0/lib/rbs/types.rb, line 278 def to_json(state = _ = nil) { class: :class_instance, name: name, args: args, location: location }.to_json(state) end
This page was generated for Ruby 3.0.4
Ruby-doc.org is a service of James Britt and Neurogami, purveyors of fine dance noise.
Generated with Ruby-doc Rdoc Generator 0.42.0.