Module: RBS::AST::Members::Attribute
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | lib/rbs/ast/members.rb |
Instance Attribute Summary
- #annotations readonly
- #comment readonly
- #ivar_name readonly
- #kind readonly
- #location readonly
- #name readonly
- #type readonly
Instance Method Summary
Instance Attribute Details
#annotations (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 221
attr_reader :annotations
#comment (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 223
attr_reader :comment
#ivar_name (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 220
attr_reader :ivar_name
#kind (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 219
attr_reader :kind
#location (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 222
attr_reader :location
#name (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 217
attr_reader :name
#type (readonly)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 218
attr_reader :type
Instance Method Details
#==(other) Also known as: #eql?
[ GitHub ]#eql?(other)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 243
alias eql? ==
#hash
[ GitHub ]#initialize(name:, type:, ivar_name:, kind:, annotations:, location:, comment:)
[ GitHub ]#update(name: self.name, type: self.type, ivar_name: self.ivar_name, kind: self.kind, annotations: self.annotations, location: self.location, comment: self.comment)
[ GitHub ]# File 'lib/rbs/ast/members.rb', line 249
def update(name: self.name, type: self.type, ivar_name: self.ivar_name, kind: self.kind, annotations: self.annotations, location: self.location, comment: self.comment) klass = _ = self.class klass.new( name: name, type: type, ivar_name: ivar_name, kind: kind, annotations: annotations, location: location, comment: comment ) end