Method: LIT::Builder::Map#initialize

Defined in:
lib/lit/builder/map.rb

#initialize(mod, key_type, value_type) ⇒ Map

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Map.

Since:

  • 0.1.0



8
9
10
11
12
# File 'lib/lit/builder/map.rb', line 8

def initialize(mod, key_type, value_type)
  @type_checker = TypeChecker.new(mod)
  @key_type = key_type
  @value_type = value_type
end