class RBS::DefinitionBuilder::MethodBuilder::Methods::Definition
Public Class Methods
empty(name:, type:)
click to toggle source
# File rbs-3.7.0/lib/rbs/definition_builder/method_builder.rb, line 22 def self.empty(name:, type:) new(type: type, name: name, originals: [], overloads: [], accessibilities: []) end
Public Instance Methods
accessibility()
click to toggle source
# File rbs-3.7.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()
click to toggle source
# File rbs-3.7.0/lib/rbs/definition_builder/method_builder.rb, line 10 def original originals.first end