class RBS::Definition::Variable

Attributes

declared_in[R]
parent_variable[R]
type[R]

Public Class Methods

new(parent_variable:, type:, declared_in:) click to toggle source
# File rbs-2.7.0/lib/rbs/definition.rb, line 10
def initialize(parent_variable:, type:, declared_in:)
  @parent_variable = parent_variable
  @type = type
  @declared_in = declared_in
end

Public Instance Methods

sub(s) click to toggle source
# File rbs-2.7.0/lib/rbs/definition.rb, line 16
def sub(s)
  self.class.new(
    parent_variable: parent_variable,
    type: type.sub(s),
    declared_in: declared_in
  )
end