class ArchSpec::Sources::Ruby
Parses Ruby and Rake files with Prism and exposes their program and comments. These sources also support semantic indexing with Rubydex.
Public Class Methods
Source
# File lib/archspec/sources/ruby.rb, line 11 def self.extensions %w[.rb .rake] end
Source
# File lib/archspec/sources/ruby.rb, line 15 def self.rubydex_indexable? true end
Public Instance Methods
Source
# File lib/archspec/sources/ruby.rb, line 19 def comments result.comments.map { |comment| Comment.from_prism(comment) } end