class RBS::InlineParser::CommentAssociation::Reference
Attributes
Public Class Methods
(CommentBlock, Set[CommentBlock]) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/inline_parser/comment_association.rb, line 32 def initialize(block, association) @block = block @associated_blocks = association end
Public Instance Methods
() → self
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/inline_parser/comment_association.rb, line 37 def associate! @associated_blocks << block self end
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/inline_parser/comment_association.rb, line 42 def associated? @associated_blocks.include?(block) end