Object
# File rbs-1.0.4/lib/rbs/types.rb, line 242 def initialize(name,, args,, location)) @name = name @args = args @location = location end
# File rbs-1.0.4/lib/rbs/types.rb, line 258 def map_type_name(&block) Interface.new( name: yield(name, location, self), args: args.map {|type| type.map_type_name(&block) }, location: location ) end
# File rbs-1.0.4/lib/rbs/types.rb, line 252 def sub(s) self.class.new(name: name, args: args.map {|ty| ty.sub(s) }, location: location) end
# File rbs-1.0.4/lib/rbs/types.rb, line 248 def to_json(*a) { class: :interface, name: name, args: args, location: location }.to_json(*a) end
This page was generated for Ruby 3.0.1
Ruby-doc.org is provided by James Britt and Neurogami. Hack your world. Feed your head. Live curious.
Generated with Ruby-doc Rdoc Generator 0.44.2.