class Solargraph::Source::Change
def commit text, insert
-
(String)
-
Parameters:
-
insert
(String
) -- -
text
(String
) --
def commit text, insert start_offset = Position.to_offset(text, range.start) end_offset = Position.to_offset(text, range.ending) (start_offset == 0 ? '' : text[0..start_offset-1].to_s) + normalize(insert) + text[end_offset..-1].to_s end