class RBS::Constant
Attributes
entry
[R]
constant_entry
type
[R]
Types::t
Public Class Methods
(name: TypeName, type: Types::t, entry: constant_entry) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/constant.rb, line 9 def initialize(name:, type:, entry:) @name = name @type = type @entry = entry end
Public Instance Methods
(untyped other) → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/constant.rb, line 15 def ==(other) other.is_a?(Constant) && other.name == name && other.type == type && other.entry == entry end
Also aliased as: eql?, eql?