Method: UniProp::PropFile#comment_ranges
- Defined in:
- lib/uniprop/unicode_elements.rb
#comment_ranges ⇒ Array<Range>
コメントのみから成る行の範囲を取得
371 372 373 374 375 376 377 378 379 380 381 |
# File 'lib/uniprop/unicode_elements.rb', line 371 def comment_ranges return @comment_ranges if @comment_ranges comment_rows = [] lines.size.times do |row| comment_rows << row if comment?(row) end @comment_ranges = UniPropUtils::RangeProcessor.array_to_ranges(comment_rows) @comment_ranges end |