Method: ReplCode::CodeRange#initialize

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

#initialize(start_line, end_line = nil) ⇒ CodeRange

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.

Returns a new instance of CodeRange.



10
11
12
13
14
# File 'lib/puppet-repl/code/code_range.rb', line 10

def initialize(start_line, end_line = nil)
  @start_line = start_line
  @end_line   = end_line
  force_set_end_line
end