lib/steep/ast/location.rb in steep-0.4.0 vs lib/steep/ast/location.rb in steep-0.5.0
- old
+ new
@@ -10,10 +10,10 @@
@start_pos = start_pos
@end_pos = end_pos
end
def inspect
- "#<#{self.class}:#{self.__id__} @buffer=..., @start_pos=#{start_pos}, @end_pos=#{end_pos}, source='#{source.lines.first}', start_line=#{start_line}, start_column=#{start_column}>"
+ "#<#{self.class}:#{self.__id__} @buffer=#{buffer.name}, @start_pos=#{start_pos}, @end_pos=#{end_pos}, source='#{source.lines.first}', start_line=#{start_line}, start_column=#{start_column}>"
end
def name
buffer.name
end