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-1.4.0/lib/rbs/definition.rb, line 8 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-1.4.0/lib/rbs/definition.rb, line 14 def sub(s) self.class.new( parent_variable: parent_variable, type: type.sub(s), declared_in: declared_in ) end