lib/parser/source/range.rb in parser-1.3.1 vs lib/parser/source/range.rb in parser-1.3.2
- old
+ new
@@ -45,10 +45,10 @@
def source_line
@source_buffer.source_line(line)
end
def to_source
- source_line[column_range]
+ @source_buffer.source[self.begin_pos...self.end_pos]
end
def is?(*what)
what.include?(to_source)
end