RBS::AST::Declarations::Base
# File rbs-1.4.0/lib/rbs/ast/declarations.rb, line 370 def initialize(name:, type:, annotations:, location:, comment:) @name = name @type = type @annotations = annotations @location = location @comment = comment end
# File rbs-1.4.0/lib/rbs/ast/declarations.rb, line 378 def ==(other) other.is_a?(Alias) && other.name == name && other.type == type end
# File rbs-1.4.0/lib/rbs/ast/declarations.rb, line 386 def hash self.class.hash ^ name.hash ^ type.hash end
# File rbs-1.4.0/lib/rbs/ast/declarations.rb, line 390 def to_json(state = _ = nil) { declaration: :alias, name: name, type: type, annotations: annotations, location: location, comment: comment }.to_json(state) end
This page was generated for Ruby 3.0.4
Ruby-doc.org is a service of James Britt and Neurogami, an erratic source of art, music, and technology.
Generated with Ruby-doc Rdoc Generator 0.42.0.