%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/ruby/3.1.4/lib64/ruby/gems/3.1.0/gems/rbs-2.7.0/sig/
Upload File :
Create Path :
Current File : //opt/plesk/ruby/3.1.4/lib64/ruby/gems/3.1.0/gems/rbs-2.7.0/sig/buffer.rbs

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

    @lines: Array[String]

    @ranges: Array[Range[Integer]]

    def initialize: (name: untyped name, content: String content) -> void

    def lines: () -> Array[String]

    def ranges: () -> Array[Range[Integer]]

    # 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

Zerion Mini Shell 1.0