class LIT::Builder::Array
@api private @since 0.1.0
Public Class Methods
new(mod, type)
click to toggle source
# File lib/lit/builder/array.rb, line 8 def initialize(mod, type) @type_checker = TypeChecker.new(mod) @type = type end
Public Instance Methods
build()
click to toggle source
# File lib/lit/builder/array.rb, line 13 def build type_checker = @type_checker type = @type Class.new(::LIT::Object::Array) do define_method(:check_type!) do |value| type_checker.check_type!(type, value) end private(:check_type!) end end