Class: Yard2steep::Type::ArrayType

Inherits:
TypeBase
  • Object
show all
Defined in:
lib/yard2steep/type/ast.rb

Instance Method Summary collapse

Constructor Details

#initialize(type:) ⇒ ArrayType

Returns a new instance of ArrayType.

Parameters:



29
30
31
# File 'lib/yard2steep/type/ast.rb', line 29

def initialize(type:)
  @type = type
end

Instance Method Details

#to_sString

Returns:

  • (String)


34
35
36
# File 'lib/yard2steep/type/ast.rb', line 34

def to_s
  "Array<#{@type}>"
end