Class: Decode::RBS::Wrapper
- Inherits:
-
Object
- Object
- Decode::RBS::Wrapper
- Defined in:
- lib/decode/rbs/wrapper.rb
Overview
Base wrapper class for RBS generation from definitions.
Instance Method Summary collapse
-
#comment ⇒ Object
Extract comment from the definition’s documentation.
-
#initialize(definition) ⇒ Wrapper
constructor
Initialize the wrapper instance variables.
-
#tags ⇒ Object
Extract RBS tags from the definition’s documentation.
Constructor Details
#initialize(definition) ⇒ Wrapper
Initialize the wrapper instance variables.
14 15 16 17 18 |
# File 'lib/decode/rbs/wrapper.rb', line 14 def initialize(definition) @definition = definition = nil @comment = nil end |
Instance Method Details
#comment ⇒ Object
Extract comment from the definition’s documentation.
28 29 30 |
# File 'lib/decode/rbs/wrapper.rb', line 28 def comment @comment ||= extract_comment end |
#tags ⇒ Object
Extract RBS tags from the definition’s documentation.
22 23 24 |
# File 'lib/decode/rbs/wrapper.rb', line 22 def ||= end |