Sha256: eac925f0440431d119142318ee0b9c544b872e1bf510e4a1922a2d960ae77371
Contents?: true
Size: 659 Bytes
Versions: 50
Compression:
Stored size: 659 Bytes
Contents
module RBS class Buffer # Location in a buffer. # A pair of line number (1 origin) and column number (0 origin). # type loc = [Integer, Integer] # Name to identify Buffer. attr_reader name: untyped # The content of the buffer. attr_reader content: String attr_reader lines: Array[String] attr_reader ranges: Array[Range[Integer]] def initialize: (name: untyped name, content: String content) -> void # Translate position to location. def pos_to_loc: (Integer pos) -> loc # Translate location to position. def loc_to_pos: (loc loc) -> Integer def last_position: () -> Integer end end
Version data entries
50 entries across 50 versions & 1 rubygems