Sha256: b8e4ecd45a02774053577206a4b0265300cf4da41dede1d879b8e7d3542c4558
Contents?: true
Size: 472 Bytes
Versions: 10
Compression:
Stored size: 472 Bytes
Contents
# frozen_string_literal: true require_relative 'converter_registry' module TTY class Prompt module ConverterDSL def converter_registry @converter_registry ||= ConverterRegistry.new end def converter(name, &block) @converter_registry = converter_registry.register(name, &block) self end def convert(name, data) @converter_registry[name, data] end end # ConverterDSL end # Prompt end # TTY
Version data entries
10 entries across 10 versions & 2 rubygems