Class: Rucoa::Handlers::TextDocumentDocumentHighlightHandler::NodeToHighlightsMappers::BeginMapper
- Inherits:
-
Base
- Object
- Base
- Rucoa::Handlers::TextDocumentDocumentHighlightHandler::NodeToHighlightsMappers::BeginMapper
- Defined in:
- lib/rucoa/handlers/text_document_document_highlight_handler.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Rucoa::Handlers::TextDocumentDocumentHighlightHandler::NodeToHighlightsMappers::Base
Instance Method Details
#call ⇒ Array
135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/rucoa/handlers/text_document_document_highlight_handler.rb', line 135 def call [ range_begin, *ranges_resbody, range_else, range_ensure, range_end ].compact.map do |parser_range| Highlights::TextHighlight.new(parser_range: parser_range) end end |