Sha256: 80e46dd6a591f37c55b9f889cda44dd4b351a2a137fd91f06f8d846fafed75fb

Contents?: true

Size: 289 Bytes

Versions: 7

Compression:

Stored size: 289 Bytes

Contents

# frozen_string_literal: true

module TTY
  class Prompt
    module Const
      Undefined = Object.new.tap do |obj|
        def obj.to_s
          "undefined"
        end

        def obj.inspect
          "undefined".inspect
        end
      end
    end # Const
  end # Prompt
end # TTY

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
tty-prompt-0.23.1 lib/tty/prompt/const.rb
tty-prompt-0.23.0 lib/tty/prompt/const.rb
lotrd-0.1.9 vendor/cache/ruby/2.6.0/gems/tty-prompt-0.22.0/lib/tty/prompt/const.rb
lotrd-0.1.8 vendor/cache/ruby/2.6.0/gems/tty-prompt-0.22.0/lib/tty/prompt/const.rb
lotrd-0.1.6 vendor/cache/ruby/2.6.0/gems/tty-prompt-0.22.0/lib/tty/prompt/const.rb
lotrd-0.1.5 vendor/cache/ruby/2.6.0/gems/tty-prompt-0.22.0/lib/tty/prompt/const.rb
tty-prompt-0.22.0 lib/tty/prompt/const.rb