RBS::AST::Declarations::Base
# File rbs-2.0.0/lib/rbs/ast/declarations.rb, line 315 def initialize(name:, type:, location:, comment:) @name = name @type = type @location = location @comment = comment end
# File rbs-2.0.0/lib/rbs/ast/declarations.rb, line 322 def ==(other) other.is_a?(Constant) && other.name == name && other.type == type end
# File rbs-2.0.0/lib/rbs/ast/declarations.rb, line 330 def hash self.class.hash ^ name.hash ^ type.hash end
# File rbs-2.0.0/lib/rbs/ast/declarations.rb, line 334 def to_json(state = _ = nil) { declaration: :constant, name: name, type: type, location: location, comment: comment }.to_json(state) end
This page was generated for Ruby 3.1.0
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.42.0.