Sha256: 8850d72270a9c1763d5befeb6cda437b3c72066b60393c34f837172a57bcdde2
Contents?: true
Size: 490 Bytes
Versions: 5
Compression:
Stored size: 490 Bytes
Contents
# encoding: utf-8 # 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
5 entries across 5 versions & 1 rubygems