class RBS::DefinitionBuilder::MethodBuilder::Methods::Definition

公共类方法

empty(name:, type:) 点击切换源代码
# File rbs-3.8.0/lib/rbs/definition_builder/method_builder.rb, line 22
def self.empty(name:, type:)
  new(type: type, name: name, originals: [], overloads: [], accessibilities: [])
end

公共实例方法

accessibility() 点击切换源代码
# File rbs-3.8.0/lib/rbs/definition_builder/method_builder.rb, line 14
def accessibility
  if original.is_a?(AST::Members::Alias)
    raise "alias member doesn't have accessibility"
  else
    accessibilities[0] or raise
  end
end
original() 点击切换源代码
# File rbs-3.8.0/lib/rbs/definition_builder/method_builder.rb, line 10
def original
  originals.first
end