Method: ReplCode::CodeRange#indices_range

Defined in:
lib/puppet-repl/code/code_range.rb

#indices_range(lines) ⇒ Range

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • lines (Array<LOC>)

Returns:

  • (Range)


18
19
20
# File 'lib/puppet-repl/code/code_range.rb', line 18

def indices_range(lines)
  Range.new(*indices(lines))
end