Class: Yard2steep::Type::HashType
- Defined in:
- lib/yard2steep/type/ast.rb
Instance Method Summary collapse
-
#initialize(key:, val:) ⇒ HashType
constructor
A new instance of HashType.
- #to_s ⇒ String
Constructor Details
#initialize(key:, val:) ⇒ HashType
Returns a new instance of HashType.
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_s ⇒ String
48 49 50 |
# File 'lib/yard2steep/type/ast.rb', line 48 def to_s "Hash<#{@key}, #{@val}>" end |