Class: Yard2steep::Type::HashType

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

Instance Method Summary collapse

Constructor Details

#initialize(key:, val:) ⇒ HashType

Returns a new instance of HashType.

Parameters:



42
43
44
45
# File 'lib/yard2steep/type/ast.rb', line 42

def initialize(key:, val:)
  @key = key
  @val = val
end

Instance Method Details

#to_sString

Returns:

  • (String)


48
49
50
# File 'lib/yard2steep/type/ast.rb', line 48

def to_s
  "Hash<#{@key}, #{@val}>"
end