Class: Tapioca::RBI::Helper

Inherits:
Node
  • Object
show all
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

Attributes inherited from Node

#parent_tree

Instance Method Summary collapse

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

#nameObject (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