class RBS::Definition::Variable
属性
declared_in[R]
parent_variable[R]
type[R]
公共类方法
new(parent_variable:, type:, declared_in:) 点击切换源代码
# File rbs-3.8.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
公共实例方法
sub(s) 点击切换源代码
# File rbs-3.8.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