class Rbs2ts::Converter::Declarations::Base

reference: RBS::AST::Declarations

Attributes

declaration[R]

Public Class Methods

new(declaration) click to toggle source
# File lib/rbs2ts/converter/declarations.rb, line 29
def initialize(declaration)
  @declaration = declaration
end

Public Instance Methods

name() click to toggle source
# File lib/rbs2ts/converter/declarations.rb, line 37
def name
  declaration.name.name.to_s
end
to_ts() click to toggle source
# File lib/rbs2ts/converter/declarations.rb, line 33
def to_ts
  ''
end