File: const.rb

package info (click to toggle)
ruby-tty-prompt 0.23.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,452 kB
  • sloc: ruby: 8,847; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 289 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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