Class: Tapioca::RBI::Helper
- Extended by:
- T::Helpers, T::Sig
- Defined in:
- lib/tapioca/rbi/model.rb,
lib/tapioca/rbi/printer.rb
Overview
Sorbet’s misc.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Node
Instance Method Summary collapse
- #accept_printer(v) ⇒ Object
-
#initialize(name) ⇒ Helper
constructor
A new instance of Helper.
Methods inherited from Node
#detach, #group_kind, #oneline?, #print, #string
Constructor Details
#initialize(name) ⇒ Helper
Returns a new instance of Helper.
383 384 385 386 |
# File 'lib/tapioca/rbi/model.rb', line 383 def initialize(name) super() @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
380 381 382 |
# File 'lib/tapioca/rbi/model.rb', line 380 def name @name end |
Instance Method Details
#accept_printer(v) ⇒ Object
378 379 380 |
# File 'lib/tapioca/rbi/printer.rb', line 378 def accept_printer(v) v.printl("#{name}!") end |