Class: Rbs2ts::Converter::Declarations::Base
- Inherits:
-
Object
- Object
- Rbs2ts::Converter::Declarations::Base
- Defined in:
- lib/rbs2ts/converter/declarations.rb
Overview
reference: RBS::AST::Declarations
Instance Method Summary collapse
-
#initialize(declaration) ⇒ Base
constructor
A new instance of Base.
- #name ⇒ Object
- #to_ts ⇒ Object
Constructor Details
#initialize(declaration) ⇒ Base
Returns a new instance of Base.
29 30 31 |
# File 'lib/rbs2ts/converter/declarations.rb', line 29 def initialize(declaration) @declaration = declaration end |
Instance Method Details
#name ⇒ Object
37 38 39 |
# File 'lib/rbs2ts/converter/declarations.rb', line 37 def name declaration.name.name.to_s end |
#to_ts ⇒ Object
33 34 35 |
# File 'lib/rbs2ts/converter/declarations.rb', line 33 def to_ts '' end |