RBS::AST::Declarations::Base
# File rbs-1.0.4/lib/rbs/ast/declarations.rb, line 393 def initialize(name,, type,, location,, comment)) @name = name @type = type @location = location @comment = comment end
# File rbs-1.0.4/lib/rbs/ast/declarations.rb, line 400 def ==(other) other.is_a?(Constant) && other.name == name && other.type == type end
# File rbs-1.0.4/lib/rbs/ast/declarations.rb, line 408 def hash self.class.hash ^ name.hash ^ type.hash end
# File rbs-1.0.4/lib/rbs/ast/declarations.rb, line 412 def to_json(*a) { declaration: :constant, name: name, type: type, location: location, comment: comment }.to_json(*a) end
This page was generated for Ruby 3.0.1
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.44.2.